def test_is_five_prime(self):
     self.assertTrue(is_prime(5))
 def test_is_four_prime(self):
     self.assertFalse(is_prime(4))
Пример #3
0
 def test_is_ten_prime(self):
     self.assertFalse(is_prime(10))
 def test_is_three_prime(self):
     self.assertTrue(is_prime(3))
Пример #5
0
 def test_is_three_prime(self):
     self.assertFalse(is_prime(3))
Пример #6
0
 def test2(self):
     self.assertTrue(is_prime(10),"error message shan")
Пример #7
0
 def test1(self):
     self.assertTrue(is_prime(5))
Пример #8
0
 def test_is_four_prime(self):
     self.assertTrue(is_prime(4))
 def test_is_twenty_prime(self):
     self.assertFalse(is_prime(20))