@@ -0,0 +1,589 @@
+import pytest%0Aimport itertools%0Afrom main import Primes, Sieve%0A%0A%0Adef test_sieve_limit():%0A    limit = 10000%0A    with Sieve(limit) as s:%0A        assert s.upper_bound() %3E= limit%0A%0A%0Adef test_upper_bound_exception():%0A    limit = 10%0A    with Sieve(limit) as s:%0A        with pytest.raises(IndexError):%0A            s.is_prime(101)%0A%0A%0Adef test_zero_is_not_in_prime_list():%0A    with Primes() as p:%0A        n = 20%0A        assert 0 not in list(itertools.islice(p, n))%0A%0A%0Adef test_number_primes_asked_is_given():%0A    with Primes() as p:%0A        n = 20%0A        assert len(list(itertools.islice(p, n))) == n%0A

Add basic Python tests for Primes and Sieve