def testPrimeCount(self): intalg.clear_prime_cache() prime_counts1 = map(intalg.prime_count_cached, xrange(3000)) intalg.clear_prime_cache() prime_counts2 = map(intalg.prime_count_cached, xrange(3000)) prime_counts2 = map(intalg.prime_count_cached, xrange(3000)) # TODO(pts): Add tests for prime_count_lowmem. self.assertEquals(prime_counts1, prime_counts2)
def tearDown(self): intalg.clear_prime_cache()
def setUp(self): intalg.clear_prime_cache()