Пример #1
0
 def test_2(self):
     """Check that 2 is not prime."""
     self.assertTrue(is_prime(2))
Пример #2
0
 def test_1(self):
     """Check that 1 is not prime."""
     self.assertFalse(is_prime(1))
Пример #3
0
 def test_28(self):
     """Check that 28 is not prime."""
     self.assertFalse(is_prime(28))
Пример #4
0
 def test_25(self):
     """Check that 25 is not prime."""
     self.assertFalse(is_prime(25))
Пример #5
0
 def test_11(self):
     """Check that 11 is not prime."""
     self.assertTrue(is_prime(11))
Пример #6
0
 def test_8(self):
     """Check that 8 is not prime."""
     self.assertFalse(is_prime(8))