<commit_before>from cis_profile import fake_profile


class TestFakeProfile(object):
    def test_fake_user(self):
        u = fake_profile.FakeUser()
        print(u.user_id.value)
        j = u.as_json()
        d = u.as_dict()
        assert j is not None
        assert d is not None
        assert u.user_id.value is not None
        u.validate()

    def test_same_fake_user(self):
        a = fake_profile.FakeUser(seed=1337)
        b = fake_profile.FakeUser(seed=1337)
        c = fake_profile.FakeUser(seed=23)
        assert a.uuid.value == b.uuid.value
        assert a.uuid.value != c.uuid.value
<commit_msg>verify publishers when generating a fake profile<commit_after>from cis_profile import fake_profile


class TestFakeProfile(object):
    def test_fake_user(self):
        u = fake_profile.FakeUser()
        print(u.user_id.value)
        j = u.as_json()
        d = u.as_dict()
        assert j is not None
        assert d is not None
        assert u.user_id.value is not None
        u.validate()
        u.verify_all_publishers(u)

    def test_same_fake_user(self):
        a = fake_profile.FakeUser(seed=1337)
        b = fake_profile.FakeUser(seed=1337)
        c = fake_profile.FakeUser(seed=23)
        assert a.uuid.value == b.uuid.value
        assert a.uuid.value != c.uuid.value

{'fraction_non_alphanumeric': 0.09375, 'fraction_numerical': 0.01524390243902439, 'mean_word_length': 2.3580562659846547, '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': '3627774', 'n_tokens_mistral': 439, 'n_tokens_neox': 421, 'n_words': 97}