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