<commit_before>from unittest import TestCase

from opencnam import InvalidPhoneNumberError, Phone


class Phonetest(TestCase):

    def test_init_requires_number(self):
        self.assertRaises(TypeError, Phone)

    def test_init_sets_empty_cnam(self):
        phone = Phone('8182179229')
        self.assertEqual(phone.cnam, '')

    def test_init_sets_number_after_validation(self):
        phone = Phone('8182179229')
        self.assertEqual(phone.number, '8182179229')

    def test_parse_number_removes_non_ints(self):
        phone = Phone('8182179229a')
        self.assertEqual(phone.number, '8182179229')<commit_msg>Fixing case in test name.<commit_after>from unittest import TestCase

from opencnam import InvalidPhoneNumberError, Phone


class PhoneTest(TestCase):

    def test_init_requires_number(self):
        self.assertRaises(TypeError, Phone)

    def test_init_sets_empty_cnam(self):
        phone = Phone('8182179229')
        self.assertEqual(phone.cnam, '')

    def test_init_sets_number_after_validation(self):
        phone = Phone('8182179229')
        self.assertEqual(phone.number, '8182179229')

    def test_parse_number_removes_non_ints(self):
        phone = Phone('8182179229a')
        self.assertEqual(phone.number, '8182179229')
{'fraction_non_alphanumeric': 0.09384858044164038, 'fraction_numerical': 0.07886435331230283, 'mean_word_length': 4.116935483870968, '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': '7212135', 'n_tokens_mistral': 462, 'n_tokens_neox': 386, 'n_words': 67}