Пример #1
0
 def test_case_2(self):
     test = program3.CreditCard()
     self.assertFalse(test.isValid('371232345686546'))
Пример #2
0
 def test_case_1(self):
     test = program3.CreditCard()
     self.assertTrue(test.isValid('371232345686516'))
Пример #3
0
 def test_case_4(self):
     test = program3.CreditCard()
     self.assertFalse(test.isValid('41232345683412'))
Пример #4
0
 def test_case_7(self):
     test = program3.CreditCard()
     self.assertTrue(test.isValid('61232345686542'))
Пример #5
0
 def test_case_3(self):
     test = program3.CreditCard()
     self.assertTrue(test.isValid('41232345683411'))