def test_io_error_if_no_replay_file(mocker, replay_test_dir):
 with pytest.raises(IOError):
  replay.load(replay_test_dir, 'no_replay')

def test_io_error_if_no_replay_file ( mocker , replay_test_dir ) : with pytest . raises ( IOError ) : replay . load ( replay_test_dir , 'no_replay' )
test that replay .