示例#1
0
 def test_string(self):
     with self.assertRaises(ValueError) as context:
         server.get_next_prime('aaa')
示例#2
0
 def test_negative_float_number(self):
     with self.assertRaises(ValueError) as context:
         server.get_next_prime(-17.17)
示例#3
0
 def test_even_number(self):
     with self.assertRaises(ValueError) as context:
         server.get_next_prime(4)
示例#4
0
 def test_one(self):
     with self.assertRaises(ValueError) as context:
         server.get_next_prime(1)
示例#5
0
 def test_positive_integer_number(self):
     assert server.get_next_prime(17) == 19