SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
List of all members
dialog.subdialog_test.SubdialogTestCases Class Reference

No documentation available. More...

Methods defined here:

def test_check_with_disable
def test_combo_box_string_nudge
def test_mark_if
def test_model_edit
def test_multi_edit
def test_multi_edit_rules_speed
def test_multi_edit_with_becoming_mixed
def test_multi_edit_with_mixed
def test_rule
def test_screenonly_values
def test_simple_edit

Methods inherited from unittest.case.TestCase:

def __call__
def __eq__
def __hash__
def __init__
def __ne__
def __repr__
def __str__
def addCleanup
def addTypeEqualityFunc
def assertAlmostEqual
def assertAlmostEqual
def assertDictContainsSubset
def assertDictEqual
def assertEqual
def assertEqual
def assertFalse
def assertGreater
def assertGreaterEqual
def assertIn
def assertIs
def assertIsInstance
def assertIsNone
def assertIsNot
def assertIsNotNone
def assertItemsEqual
def assertLess
def assertLessEqual
def assertListEqual
def assertMultiLineEqual
def assertNotAlmostEqual
def assertNotAlmostEqual
def assertNotEqual
def assertNotEqual
def assertNotIn
def assertNotIsInstance
def assertNotRegexpMatches
def assertRaises
def assertRaisesRegexp
def assertRegexpMatches
def assertSequenceEqual
def assertSetEqual
def assertTrue
def assertTupleEqual
def assertTrue
def countTestCases
def debug
def defaultTestResult
def doCleanups
def fail
def deprecated_func
def deprecated_func
def deprecated_func
def deprecated_func
def deprecated_func
def deprecated_func
def deprecated_func
def id
def run
def setUp
def shortDescription
def skipTest
def tearDown

Class methods inherited from unittest.case.TestCase:

def setUpClass
def tearDownClass

Data descriptors inherited from unittest.case.TestCase:

def __dict__
 dictionary for instance variables (if defined)
def __weakref__
 list of weak references to the object (if defined)

Data and other attributes inherited from unittest.case.TestCase:

string failureException = 'exceptions.AssertionError'
 longMessage = False
int maxDiff = 640

Detailed Description

No documentation available.

Method resolution order

SubdialogTestCases
unittest.case.TestCase
builtin.object

Constructor & Destructor Documentation

def dialog.subdialog_test.SubdialogTestCases.__init__ (   args)
 Create an instance of the class that will use the named test
 method when executed. Raises a ValueError if the instance does
 not have a method with the specified name.

Member Function Documentation

def dialog.subdialog_test.SubdialogTestCases.__call__ (   args)
 __call__(args)
def dialog.subdialog_test.SubdialogTestCases.__dict__ (   args)

dictionary for instance variables (if defined)

def dialog.subdialog_test.SubdialogTestCases.__eq__ (   args)
 __eq__(args)
def dialog.subdialog_test.SubdialogTestCases.__hash__ (   args)
 __hash__(args)
def dialog.subdialog_test.SubdialogTestCases.__ne__ (   args)
 __ne__(args)
def dialog.subdialog_test.SubdialogTestCases.__repr__ (   args)
 __repr__(args)
def dialog.subdialog_test.SubdialogTestCases.__str__ (   args)
 __str__(args)
def dialog.subdialog_test.SubdialogTestCases.__weakref__ (   args)

list of weak references to the object (if defined)

def dialog.subdialog_test.SubdialogTestCases.addCleanup (   args)
 Add a function, with arguments, to be called when the test is
 completed. Functions added are called on a LIFO basis and are
 called after tearDown on test failure or success.
 
 Cleanup items are called even if setUp fails (unlike tearDown).
def dialog.subdialog_test.SubdialogTestCases.addTypeEqualityFunc (   args)
 Add a type specific assertEqual style function to compare a type.
 
 This method is for use by TestCase subclasses that need to register
 their own type equality functions to provide nicer error messages.
 
 Args:
     typeobj: The data type to call this function on when both values
             are of the same type in assertEqual().
     function: The callable taking two arguments and an optional
             msg= argument that raises self.failureException with a
             useful error message when the two arguments are not equal.
def dialog.subdialog_test.SubdialogTestCases.assertAlmostEqual (   args)
 Fail if the two objects are unequal as determined by their
 difference rounded to the given number of decimal places
 (default 7) and comparing to zero, or by comparing that the
 between the two objects is more than the given delta.
 
 Note that decimal places (from zero) are usually not the same
 as significant digits (measured from the most signficant digit).
 
 If the two objects compare equal then they will automatically
 compare almost equal.
def dialog.subdialog_test.SubdialogTestCases.assertAlmostEqual (   args)
 Fail if the two objects are unequal as determined by their
 difference rounded to the given number of decimal places
 (default 7) and comparing to zero, or by comparing that the
 between the two objects is more than the given delta.
 
 Note that decimal places (from zero) are usually not the same
 as significant digits (measured from the most signficant digit).
 
 If the two objects compare equal then they will automatically
 compare almost equal.
def dialog.subdialog_test.SubdialogTestCases.assertDictContainsSubset (   args)
 Checks whether actual is a superset of expected.
def dialog.subdialog_test.SubdialogTestCases.assertDictEqual (   args)
 assertDictEqual(args)
def dialog.subdialog_test.SubdialogTestCases.assertEqual (   args)
 Fail if the two objects are unequal as determined by the '=='
 operator.
def dialog.subdialog_test.SubdialogTestCases.assertEqual (   args)
 Fail if the two objects are unequal as determined by the '=='
 operator.
def dialog.subdialog_test.SubdialogTestCases.assertFalse (   args)
 Check that the expression is false.
def dialog.subdialog_test.SubdialogTestCases.assertGreater (   args)
 Just like self.assertTrue(a > b), but with a nicer default message.
def dialog.subdialog_test.SubdialogTestCases.assertGreaterEqual (   args)
 Just like self.assertTrue(a >= b), but with a nicer default message.
def dialog.subdialog_test.SubdialogTestCases.assertIn (   args)
 Just like self.assertTrue(a in b), but with a nicer default message.
def dialog.subdialog_test.SubdialogTestCases.assertIs (   args)
 Just like self.assertTrue(a is b), but with a nicer default message.
def dialog.subdialog_test.SubdialogTestCases.assertIsInstance (   args)
 Same as self.assertTrue(isinstance(obj, cls)), with a nicer
 default message.
def dialog.subdialog_test.SubdialogTestCases.assertIsNone (   args)
 Same as self.assertTrue(obj is None), with a nicer default message.
def dialog.subdialog_test.SubdialogTestCases.assertIsNot (   args)
 Just like self.assertTrue(a is not b), but with a nicer default message.
def dialog.subdialog_test.SubdialogTestCases.assertIsNotNone (   args)
 Included for symmetry with assertIsNone.
def dialog.subdialog_test.SubdialogTestCases.assertItemsEqual (   args)
 An unordered sequence specific comparison. It asserts that
 actual_seq and expected_seq have the same element counts.
 Equivalent to::
 
     self.assertEqual(Counter(iter(actual_seq)),
                      Counter(iter(expected_seq)))
 
 Asserts that each element has the same count in both sequences.
 Example:
     - [0, 1, 1] and [1, 0, 1] compare equal.
     - [0, 0, 1] and [0, 1] compare unequal.
def dialog.subdialog_test.SubdialogTestCases.assertLess (   args)
 Just like self.assertTrue(a < b), but with a nicer default message.
def dialog.subdialog_test.SubdialogTestCases.assertLessEqual (   args)
 Just like self.assertTrue(a <= b), but with a nicer default message.
def dialog.subdialog_test.SubdialogTestCases.assertListEqual (   args)
 A list-specific equality assertion.
 
 Args:
     list1: The first list to compare.
     list2: The second list to compare.
     msg: Optional message to use on failure instead of a list of
             differences.
def dialog.subdialog_test.SubdialogTestCases.assertMultiLineEqual (   args)
 Assert that two multi-line strings are equal.
def dialog.subdialog_test.SubdialogTestCases.assertNotAlmostEqual (   args)
 Fail if the two objects are equal as determined by their
 difference rounded to the given number of decimal places
 (default 7) and comparing to zero, or by comparing that the
 between the two objects is less than the given delta.
 
 Note that decimal places (from zero) are usually not the same
 as significant digits (measured from the most signficant digit).
 
 Objects that are equal automatically fail.
def dialog.subdialog_test.SubdialogTestCases.assertNotAlmostEqual (   args)
 Fail if the two objects are equal as determined by their
 difference rounded to the given number of decimal places
 (default 7) and comparing to zero, or by comparing that the
 between the two objects is less than the given delta.
 
 Note that decimal places (from zero) are usually not the same
 as significant digits (measured from the most signficant digit).
 
 Objects that are equal automatically fail.
def dialog.subdialog_test.SubdialogTestCases.assertNotEqual (   args)
 Fail if the two objects are equal as determined by the '=='
 operator.
def dialog.subdialog_test.SubdialogTestCases.assertNotEqual (   args)
 Fail if the two objects are equal as determined by the '=='
 operator.
def dialog.subdialog_test.SubdialogTestCases.assertNotIn (   args)
 Just like self.assertTrue(a not in b), but with a nicer default message.
def dialog.subdialog_test.SubdialogTestCases.assertNotIsInstance (   args)
 Included for symmetry with assertIsInstance.
def dialog.subdialog_test.SubdialogTestCases.assertNotRegexpMatches (   args)
 Fail the test if the text matches the regular expression.
def dialog.subdialog_test.SubdialogTestCases.assertRaises (   args)
 Fail unless an exception of class excClass is thrown
 by callableObj when invoked with arguments args and keyword
 arguments kwargs. If a different type of exception is
 thrown, it will not be caught, and the test case will be
 deemed to have suffered an error, exactly as for an
 unexpected exception.
 
 If called with callableObj omitted or None, will return a
 context object used like this::
 
      with self.assertRaises(SomeException):
          do_something()
 
 The context manager keeps a reference to the exception as
 the 'exception' attribute. This allows you to inspect the
 exception after the assertion::
 
     with self.assertRaises(SomeException) as cm:
         do_something()
     the_exception = cm.exception
     self.assertEqual(the_exception.error_code, 3)
def dialog.subdialog_test.SubdialogTestCases.assertRaisesRegexp (   args)
 Asserts that the message in a raised exception matches a regexp.
 
 Args:
     expected_exception: Exception class expected to be raised.
     expected_regexp: Regexp (re pattern object or string) expected
             to be found in error message.
     callable_obj: Function to be called.
     args: Extra args.
     kwargs: Extra kwargs.
def dialog.subdialog_test.SubdialogTestCases.assertRegexpMatches (   args)
 Fail the test unless the text matches the regular expression.
def dialog.subdialog_test.SubdialogTestCases.assertSequenceEqual (   args)
 An equality assertion for ordered sequences (like lists and tuples).
 
 For the purposes of this function, a valid ordered sequence type is one
 which can be indexed, has a length, and has an equality operator.
 
 Args:
     seq1: The first sequence to compare.
     seq2: The second sequence to compare.
     seq_type: The expected datatype of the sequences, or None if no
             datatype should be enforced.
     msg: Optional message to use on failure instead of a list of
             differences.
def dialog.subdialog_test.SubdialogTestCases.assertSetEqual (   args)
 A set-specific equality assertion.
 
 Args:
     set1: The first set to compare.
     set2: The second set to compare.
     msg: Optional message to use on failure instead of a list of
             differences.
 
 assertSetEqual uses ducktyping to support different types of sets, and
 is optimized for sets specifically (parameters must support a
 difference method).
def dialog.subdialog_test.SubdialogTestCases.assertTrue (   args)
 Check that the expression is true.
def dialog.subdialog_test.SubdialogTestCases.assertTrue (   args)
 Check that the expression is true.
def dialog.subdialog_test.SubdialogTestCases.assertTupleEqual (   args)
 A tuple-specific equality assertion.
 
 Args:
     tuple1: The first tuple to compare.
     tuple2: The second tuple to compare.
     msg: Optional message to use on failure instead of a list of
             differences.
def dialog.subdialog_test.SubdialogTestCases.countTestCases (   args)
 countTestCases(args)
def dialog.subdialog_test.SubdialogTestCases.debug (   args)
 Run the test without collecting errors in a TestResult
def dialog.subdialog_test.SubdialogTestCases.defaultTestResult (   args)
 defaultTestResult(args)
def dialog.subdialog_test.SubdialogTestCases.deprecated_func (   args)
 failIf = deprecated_func(args)
def dialog.subdialog_test.SubdialogTestCases.deprecated_func (   args)
 failIfAlmostEqual = deprecated_func(args)
def dialog.subdialog_test.SubdialogTestCases.deprecated_func (   args)
 failIfEqual = deprecated_func(args)
def dialog.subdialog_test.SubdialogTestCases.deprecated_func (   args)
 failUnless = deprecated_func(args)
def dialog.subdialog_test.SubdialogTestCases.deprecated_func (   args)
 failUnlessAlmostEqual = deprecated_func(args)
def dialog.subdialog_test.SubdialogTestCases.deprecated_func (   args)
 failUnlessEqual = deprecated_func(args)
def dialog.subdialog_test.SubdialogTestCases.deprecated_func (   args)
 failUnlessRaises = deprecated_func(args)
def dialog.subdialog_test.SubdialogTestCases.doCleanups (   args)
 Execute all cleanup functions. Normally called for you after
 tearDown.
def dialog.subdialog_test.SubdialogTestCases.fail (   args)
 Fail immediately, with the given message.
def dialog.subdialog_test.SubdialogTestCases.id (   args)
 id(args)
def dialog.subdialog_test.SubdialogTestCases.run (   args)
 run(args)
def dialog.subdialog_test.SubdialogTestCases.setUp (   args)
 Hook method for setting up the test fixture before exercising it.
def dialog.subdialog_test.SubdialogTestCases.setUpClass (   args)
 Hook method for setting up class fixture before running tests in the class.

builtin.type_cls_m Class Methods from builtin.type

def dialog.subdialog_test.SubdialogTestCases.shortDescription (   args)
 Returns a one-line description of the test, or None if no
 description has been provided.
 
 The default implementation of this method returns the first line of
 the specified test method's docstring.
def dialog.subdialog_test.SubdialogTestCases.skipTest (   args)
 Skip this test.
def dialog.subdialog_test.SubdialogTestCases.tearDown (   args)
 Hook method for deconstructing the test fixture after testing it.
def dialog.subdialog_test.SubdialogTestCases.tearDownClass (   args)
 Hook method for deconstructing the class fixture after running all tests in the class.

builtin.type_cls_m Class Methods from builtin.type

def dialog.subdialog_test.SubdialogTestCases.test_check_with_disable (   args)
 test_check_with_disable(args)
def dialog.subdialog_test.SubdialogTestCases.test_combo_box_string_nudge (   args)
 strings and int indexes should be interchangeable when using a combobox.
def dialog.subdialog_test.SubdialogTestCases.test_mark_if (   args)
 test_mark_if(args)
def dialog.subdialog_test.SubdialogTestCases.test_model_edit (   args)
 test_model_edit(args)
def dialog.subdialog_test.SubdialogTestCases.test_multi_edit (   args)
 test_multi_edit(args)
def dialog.subdialog_test.SubdialogTestCases.test_multi_edit_rules_speed (   args)
 test_multi_edit_rules_speed(args)
def dialog.subdialog_test.SubdialogTestCases.test_multi_edit_with_becoming_mixed (   args)
 test_multi_edit_with_becoming_mixed(args)
def dialog.subdialog_test.SubdialogTestCases.test_multi_edit_with_mixed (   args)
 test_multi_edit_with_mixed(args)
def dialog.subdialog_test.SubdialogTestCases.test_rule (   args)
 test_rule(args)
def dialog.subdialog_test.SubdialogTestCases.test_screenonly_values (   args)
 test_screenonly_values(args)
def dialog.subdialog_test.SubdialogTestCases.test_simple_edit (   args)
 test_simple_edit(args)

Member Data Documentation

string dialog.subdialog_test.SubdialogTestCases.failureException = 'exceptions.AssertionError'
static
Assertion failed.
dialog.subdialog_test.SubdialogTestCases.longMessage = False
static
int dialog.subdialog_test.SubdialogTestCases.maxDiff = 640
static