def test_bad_number_regex(): for item in BAD_NUMBERS: assert NUMBERS_REGEX.search(item) is None
def test_partial_number_regex(): for item in PARTIAL_NUMBERS: assert item != NUMBERS_REGEX.search(item)
def test_partial_number_regex(self): for item in PARTIAL_NUMBERS: self.assertNotEqual(item, NUMBERS_REGEX.search(item))
def test_good_number_regex(): for item in GOOD_NUMBERS: assert item == NUMBERS_REGEX.search(item).group()
def test_bad_number_regex(self): for item in BAD_NUMBERS: self.assertIsNone(NUMBERS_REGEX.search(item))
def test_good_number_regex(self): for item in GOOD_NUMBERS: self.assertEqual(item, NUMBERS_REGEX.search(item).group())