def test_vgood6(self): self.num = SocialSecurity.check_ss_num("908-32-4356") correct_num = "908-32-4356" self.assertEqual( correct_num, self.num)
def test_middle4(self): self.num = SocialSecurity.check_ss_num("987-65-4329") correct_num = "" self.assertEqual( correct_num, self.num)
def test_bad2(self): self.num = SocialSecurity.check_ss_num("666-12-6701") correct_num = "" self.assertEqual( correct_num, self.num)
def test_bad1(self): self.num = SocialSecurity.check_ss_num("000-00-0000") correct_num = "" self.assertEqual( correct_num, self.num)
def test_vbad0(self): self.num = SocialSecurity.check_ss_num("jiouo^") correct_num = "" self.assertEqual( correct_num, self.num)
def setUp(self): self.num = SocialSecurity.check_ss_num("")