def test_string(self): with self.assertRaises(ValueError) as context: server.is_prime('aaa')
def test_negative_float_number(self): with self.assertRaises(ValueError) as context: server.is_prime(-17.17)
def test_even_number(self): assert not server.is_prime(4)
def test_one(self): with self.assertRaises(ValueError) as context: server.is_prime(1)
def test_prime_number(self): assert server.is_prime(17)