oship-dev team mailing list archive
-
oship-dev team
-
Mailing list archive
-
Message #00694
Should I instantiate all the objects in a doctest?
Hi.
I'm doing a doctest for the GenericEntry class. GenericEntry inherits from
ContentItem which inherits from Locatable. To instantiate objects that
inherit from Locatable, it's necessary to pass a lot of arguments to the
__init__ method. The first test I've made I just pass to the __init__method
simple Strings, but I'd like to know how we will do it. Will we instantiante
all the parameters and then pass to the "constructor"? Or will we
instantiate just the required parameters? If I start instantiating all the
necessary classes the test will be very large.
Cheers,
Wagner.
Follow ups