示例#1
0
 def test_1(self):
     """Check that 1 is not prime."""
     self.assertFalse(is_prime(1))
示例#2
0
 def test_3(self):
     """Check that 3 is prime."""
     self.assertTrue(is_prime(3))
示例#3
0
 def test_11(self):
     """Check that 11 is prime."""
     self.assertTrue(is_prime(11))
示例#4
0
 def test_2(self):
     """Check that 2 is prime."""
     self.assertTrue(is_prime(2))