Пример #1
0
 def test_zero_input(self):
     self.assertEqual(prime_no(0), "invalid input")
Пример #2
0
 def test_negative_input(self):
     self.assertEqual(prime_no(-9), "invalid input")
Пример #3
0
 def test_output_type(self):
     self.assertEqual(type(prime_no(9)) == list, True, "type Error")
Пример #4
0
 def test_input_type(self):
     self.assertEqual(prime_no(20.6), "invalid input type")
Пример #5
0
 def test_working(self):
     self.assertEqual(prime_no(9), [2, 3, 5, 7], "Code Error")