Method summary
- setUp(self)
- test_base_category(self)
- test_extra_extension_category(self)
- test_plus_extension_category(self)
- test_subclass_extension_category(self)
- test_subclass_instance_category(self)
Methods
- setUp(self)
- test_base_category(self)
Base class with traits
- test_extra_extension_category(self)
Base class extended with a category subclass
- test_plus_extension_category(self)
Base class extended with two category subclasses
- test_subclass_extension_category(self)
Category subclass does not extend base class. This test demonstrates that traits allows subclassing of a category class, but that the traits from the subclass are not actually added to the base class of the Category. Seems like the declaration of the subclass (BasePlusPlus) should fail.
- test_subclass_instance_category(self)
Category subclass instantiation not supportted. This test demonstrates that traits allows subclassing of a category class, that subclass can be instantiated, but the traits of the parent class are not inherited. Seems like the declaration of the subclass (BasePlusPlus) should fail.