Exemplo n.º 1
0
 def test_2_is_prime(self):
     self.assertEqual(PrimeNumbers.test_if_prime(value=2), True)
Exemplo n.º 2
0
 def test_4_is_prime(self):
     self.assertEqual(PrimeNumbers.test_if_prime(value=4), False)
Exemplo n.º 3
0
 def test_out_of_range_error(self):
     with self.assertRaises(ValueError):
         PrimeNumbers.test_if_prime(value=-1)