SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
List of all members
cons_tests.ConsTestCases Class Reference

No documentation available. More...

Methods defined here:

def cannot_test_intersect_diffkind
def test_intersect_bad_type
def test_intersect_defined
def test_intersect_degenerate

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

ConsTestCases
unittest.case.TestCase
builtin.object

Constructor & Destructor Documentation

def cons_tests.ConsTestCases.__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 cons_tests.ConsTestCases.__call__ (   args)
 __call__(args)
def cons_tests.ConsTestCases.__dict__ (   args)

dictionary for instance variables (if defined)

def cons_tests.ConsTestCases.__eq__ (   args)
 __eq__(args)
def cons_tests.ConsTestCases.__hash__ (   args)
 __hash__(args)
def cons_tests.ConsTestCases.__ne__ (   args)
 __ne__(args)
def cons_tests.ConsTestCases.__repr__ (   args)
 __repr__(args)
def cons_tests.ConsTestCases.__str__ (   args)
 __str__(args)
def cons_tests.ConsTestCases.__weakref__ (   args)

list of weak references to the object (if defined)

def cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.assertDictContainsSubset (   args)
 Checks whether actual is a superset of expected.
def cons_tests.ConsTestCases.assertDictEqual (   args)
 assertDictEqual(args)
def cons_tests.ConsTestCases.assertEqual (   args)
 Fail if the two objects are unequal as determined by the '=='
 operator.
def cons_tests.ConsTestCases.assertEqual (   args)
 Fail if the two objects are unequal as determined by the '=='
 operator.
def cons_tests.ConsTestCases.assertFalse (   args)
 Check that the expression is false.
def cons_tests.ConsTestCases.assertGreater (   args)
 Just like self.assertTrue(a > b), but with a nicer default message.
def cons_tests.ConsTestCases.assertGreaterEqual (   args)
 Just like self.assertTrue(a >= b), but with a nicer default message.
def cons_tests.ConsTestCases.assertIn (   args)
 Just like self.assertTrue(a in b), but with a nicer default message.
def cons_tests.ConsTestCases.assertIs (   args)
 Just like self.assertTrue(a is b), but with a nicer default message.
def cons_tests.ConsTestCases.assertIsInstance (   args)
 Same as self.assertTrue(isinstance(obj, cls)), with a nicer
 default message.
def cons_tests.ConsTestCases.assertIsNone (   args)
 Same as self.assertTrue(obj is None), with a nicer default message.
def cons_tests.ConsTestCases.assertIsNot (   args)
 Just like self.assertTrue(a is not b), but with a nicer default message.
def cons_tests.ConsTestCases.assertIsNotNone (   args)
 Included for symmetry with assertIsNone.
def cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.assertLess (   args)
 Just like self.assertTrue(a < b), but with a nicer default message.
def cons_tests.ConsTestCases.assertLessEqual (   args)
 Just like self.assertTrue(a <= b), but with a nicer default message.
def cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.assertMultiLineEqual (   args)
 Assert that two multi-line strings are equal.
def cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.assertNotEqual (   args)
 Fail if the two objects are equal as determined by the '=='
 operator.
def cons_tests.ConsTestCases.assertNotEqual (   args)
 Fail if the two objects are equal as determined by the '=='
 operator.
def cons_tests.ConsTestCases.assertNotIn (   args)
 Just like self.assertTrue(a not in b), but with a nicer default message.
def cons_tests.ConsTestCases.assertNotIsInstance (   args)
 Included for symmetry with assertIsInstance.
def cons_tests.ConsTestCases.assertNotRegexpMatches (   args)
 Fail the test if the text matches the regular expression.
def cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.assertRegexpMatches (   args)
 Fail the test unless the text matches the regular expression.
def cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.assertTrue (   args)
 Check that the expression is true.
def cons_tests.ConsTestCases.assertTrue (   args)
 Check that the expression is true.
def cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.cannot_test_intersect_diffkind (   args)
 this test would check that something sane happens when intersecting
 a two-point construction line with a point-and-angle construction line.
 Unfortunately, insane things happen at the moment, so we can't write
 this test.
def cons_tests.ConsTestCases.countTestCases (   args)
 countTestCases(args)
def cons_tests.ConsTestCases.debug (   args)
 Run the test without collecting errors in a TestResult
def cons_tests.ConsTestCases.defaultTestResult (   args)
 defaultTestResult(args)
def cons_tests.ConsTestCases.deprecated_func (   args)
 failIf = deprecated_func(args)
def cons_tests.ConsTestCases.deprecated_func (   args)
 failIfAlmostEqual = deprecated_func(args)
def cons_tests.ConsTestCases.deprecated_func (   args)
 failIfEqual = deprecated_func(args)
def cons_tests.ConsTestCases.deprecated_func (   args)
 failUnless = deprecated_func(args)
def cons_tests.ConsTestCases.deprecated_func (   args)
 failUnlessAlmostEqual = deprecated_func(args)
def cons_tests.ConsTestCases.deprecated_func (   args)
 failUnlessEqual = deprecated_func(args)
def cons_tests.ConsTestCases.deprecated_func (   args)
 failUnlessRaises = deprecated_func(args)
def cons_tests.ConsTestCases.doCleanups (   args)
 Execute all cleanup functions. Normally called for you after
 tearDown.
def cons_tests.ConsTestCases.fail (   args)
 Fail immediately, with the given message.
def cons_tests.ConsTestCases.id (   args)
 id(args)
def cons_tests.ConsTestCases.run (   args)
 run(args)
def cons_tests.ConsTestCases.setUp (   args)
 Hook method for setting up the test fixture before exercising it.
def cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.skipTest (   args)
 Skip this test.
def cons_tests.ConsTestCases.tearDown (   args)
 Hook method for deconstructing the test fixture after testing it.
def cons_tests.ConsTestCases.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 cons_tests.ConsTestCases.test_intersect_bad_type (   args)
 test_intersect_bad_type(args)
def cons_tests.ConsTestCases.test_intersect_defined (   args)
 When defined construction lines of the same kind are intersected,
 they should result in either a cons_line.error (if they are parallel)
 or a result (if they are not).
def cons_tests.ConsTestCases.test_intersect_degenerate (   args)
 intersecting when one argument is degenerate should always result in
 a ValueError

Member Data Documentation

string cons_tests.ConsTestCases.failureException = 'exceptions.AssertionError'
static
Assertion failed.
cons_tests.ConsTestCases.longMessage = False
static
int cons_tests.ConsTestCases.maxDiff = 640
static