<commit_before>import collections
import pytest
from handparser import PokerStarsHand
import test_data


all_test_hands = [eval('test_data.HAND%d' % num) for num in range(1, 6)]

@pytest.fixture(params=all_test_hands)
def all_hands(request):
    return PokerStarsHand(request.param)


@pytest.fixture
def hand_header():
    h = PokerStarsHand(test_data.HAND1, parse=False)
    h.parse_header()
    return h


class TestDictBehavior:
    def test_hand_is_mutablemapping(self, all_hands):
        assert isinstance(all_hands, collections.MutableMapping)

    def test_all_keys_set(self, all_hands):
        excpected_keys = {'number', 'currency', 'hero_hole_cards', 'preflop_actions', 'turn', 'show_down', 'poker_room',
                          'winners', 'board', 'limit', 'river_actions', 'hero', 'turn_actions', 'bb', 'button_seat',
                          'tournament_ident', 'rake', 'buyin', 'game', 'hero_seat', 'date', 'max_players',
                          'flop_actions', 'button', 'flop', 'game_type', 'players', 'table_name', 'sb', 'total_pot',
                          'river', 'tournament_level'}
        assert excpected_keys == set(all_hands.keys())
<commit_msg>Fixed test for the new change from master<commit_after>import collections
import pytest
from handparser import PokerStarsHand
import test_data


all_test_hands = [eval('test_data.HAND%d' % num) for num in range(1, 6)]

@pytest.fixture(params=all_test_hands)
def all_hands(request):
    return PokerStarsHand(request.param)


@pytest.fixture
def hand_header():
    h = PokerStarsHand(test_data.HAND1, parse=False)
    h.parse_header()
    return h


class TestDictBehavior:
    def test_hand_is_mutablemapping(self, all_hands):
        assert isinstance(all_hands, collections.MutableMapping)

    def test_all_keys_set(self, all_hands):
        excpected_keys = {'ident', 'currency', 'hero_hole_cards', 'preflop_actions', 'turn', 'show_down', 'poker_room',
                          'winners', 'board', 'limit', 'river_actions', 'hero', 'turn_actions', 'bb', 'button_seat',
                          'tournament_ident', 'rake', 'buyin', 'game', 'hero_seat', 'date', 'max_players',
                          'flop_actions', 'button', 'flop', 'game_type', 'players', 'table_name', 'sb', 'total_pot',
                          'river', 'tournament_level'}
        assert excpected_keys == set(all_hands.keys())

{'fraction_non_alphanumeric': 0.13311008790288822, 'fraction_numerical': 0.0025115110925073253, 'mean_word_length': 3.66796875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '457384', 'n_tokens_mistral': 796, 'n_tokens_neox': 765, 'n_words': 165}