human
I am working on the file "Cap08/DesafioDSA_Solucao/Missao2/missao2.ipynb".
The first task is:
Teste da Solução
Can you write Python program for it?

Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.

%%writefile missao2.py

from nose.tools import assert_equal, assert_raises

class TestMath(object):

    def test_generate_primes(self):
        prime_generator = PrimeGenerator()
        assert_raises(TypeError, prime_generator.generate_primes, None)
        assert_raises(TypeError, prime_generator.generate_primes, 98.6)
        assert_equal(prime_generator.generate_primes(20), [False, False, True, 
                                                           True, False, True, 
                                                           False, True, False, 
                                                           False, False, True, 
                                                           False, True, False, 
                                                           False, False, True, 
                                                           False, True])
        print('Sua solução foi executada com sucesso! Parabéns!')

def main():
    test = TestMath()
    test.test_generate_primes()

if __name__ == '__main__':
    main()

%run -i missao2.py