<commit_before>from eduid_common.session.session_cookie import SessionCookie


class TestSessionCookie:
    def test_from_cookie(self):
        app_secret = 'supersecretkey'
        cookie_val = (
            'a44ADOHJ2PGALYCWK5POYDDSFC4PALOAKLZFRIYQ5A2KLO4W76TCNRXG'
            'WY4RZRICL3LR22J35WCJAPRFPHUNL77ZXGOBT5ZOHWGRG3YTY'
        )
        token = SessionCookie.from_cookie(cookie_val, app_secret)
        assert token.session_id == 'e700371d3a7980bc0acaebdd818e45171e05b80a5e4b14621d0694b772dff4c4'
<commit_msg>fix test vector<commit_after>from eduid_common.session.session_cookie import SessionCookie


class TestSessionCookie:
    def test_from_cookie(self):
        app_secret = 'supersecretkey'
        cookie_val = (
            'aZPXP25Y5MUIM6APRRY3QEDTOHLAAKDEBLRFU5AOEPIPPW5L7UVVX'
            '3BSEJEYVTKYD5OJNOX5GECL7OD5FZV4BWFE7KCCHG36SGFMNIBDY'
        )
        token = SessionCookie.from_cookie(cookie_val, app_secret)
        assert token.session_id == 'cbeefd771d6510cf01f18e37020e6e3ac0050c815c4b4e81c47a1efb757fa56b'

{'fraction_non_alphanumeric': 0.055449330783938815, 'fraction_numerical': 0.1089866156787763, 'mean_word_length': 4.208955223880597, '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': '6715758', 'n_tokens_mistral': 484, 'n_tokens_neox': 424, 'n_words': 40}