Bases: taurus.qt.qtgui.test.base.BaseWidgetTestCase
a base class for testing common cases of arbitrary Taurus widget classes
To use it, simply inherit from GenericWidgetTestCase and unittest.TestCase and provide the following class members:
_klass (typeobject) the widget class to test (mandatory)
- initargs (list) a list of arguments for the klass init method
(default=[])
- initkwargs (dict) a dict of keyword arguments for the klass init method
(default={})
- modelnames (list) a list of model names which the widget should be able
to handle (default=[])
Preconditions:
Check that the widget instantiates correctly
Check that we can set several models sequentially