def test_twin_prime(self): prime3.prime_gen(18) self.assertEqual(17, prime3.latest_prime())
def test_composite(self): prime3.prime_gen(10) self.assertEqual(7, prime3.latest_prime())
def test_prime(self): prime3.prime_gen(7) self.assertEqual(7, prime3.latest_prime())