Il giorno 27 ottobre 2015 11:47, Perini Matteo <perini.mat...@gmail.com> ha
scritto:

> from pt import CC
>
> def test_somma():
>     CC.__init__(CC)
>     assert CC.somma(CC)==10


Occhio che anche il test deve essere codice Python buono! :)

Prova, ad esempio, a creare all'interno di test_somma una istanza valida di
CC e di fare l'assert su quella.

Ciao,
Simone
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a