mwavepy.testCases.testMedia | index /home/alex/docs/python/path/mwavepy/testCases/testMedia.py

Modules
`` |  |
scipy.constants.codata | scipy.constants.constants | mwavepy | unittest

Classes
`` |  | unittest.case.TestCase(__builtin__.object) MediaTestCase CPWTestCase DistributedCircuitTestCase FreespaceTestCase RectangularWaveguideTestCase
class CPWTestCase(MediaTestCase)
`` |  | Method resolution order: CPWTestCase MediaTestCase unittest.case.TestCase __builtin__.object Methods defined here: setUp(self) Methods inherited from MediaTestCase: test_capacitor(self) test_characterisitc_impedance_value(self) test_delay_load(self) test_delay_open(self) test_delay_short(self) test_impedance_mismatch(self) test_inductor(self) test_line(self) test_load(self) test_match(self) test_open(self) test_propagation_constant(self) test_short(self) test_shunt_delay_load(self) test_shunt_delay_open(self) test_shunt_delay_short(self) test_splitter(self) test_tee(self) test_thru(self) Methods inherited from unittest.case.TestCase: __call__(self, *args, **kwds) __eq__(self, other) __hash__(self) __init__(self, methodName='runTest') `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.` __ne__(self, other) __repr__(self) __str__(self) addCleanup(self, function, *args, **kwargs) `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).` addTypeEqualityFunc(self, typeobj, function) `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.` assertAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertAlmostEquals = assertAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertDictContainsSubset(self, expected, actual, msg=None) `Checks whether actual is a superset of expected.` assertDictEqual(self, d1, d2, msg=None) assertEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '==' operator.` assertEquals = assertEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '==' operator.` assertFalse(self, expr, msg=None) `Check that the expression is false.` assertGreater(self, a, b, msg=None) `Just like assertTrue(a > b), but with a nicer default message.` assertGreaterEqual(self, a, b, msg=None) `Just like assertTrue(a >= b), but with a nicer default message.` assertIn(self, member, container, msg=None) `Just like assertTrue(a in b), but with a nicer default message.` assertIs(self, expr1, expr2, msg=None) `Just like assertTrue(a is b), but with a nicer default message.` assertIsInstance(self, obj, cls, msg=None) `Same as assertTrue(isinstance(obj, cls)), with a nicer default message.` assertIsNone(self, obj, msg=None) `Same as assertTrue(obj is None), with a nicer default message.` assertIsNot(self, expr1, expr2, msg=None) `Just like assertTrue(a is not b), but with a nicer default message.` assertIsNotNone(self, obj, msg=None) `Included for symmetry with assertIsNone.` assertItemsEqual(self, expected_seq, actual_seq, msg=None) `An unordered sequence specific comparison. It asserts that actual_seq and expected_seq have the same element counts. Equivalent to:: 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.` assertLess(self, a, b, msg=None) `Just like assertTrue(a < b), but with a nicer default message.` assertLessEqual(self, a, b, msg=None) `Just like assertTrue(a <= b), but with a nicer default message.` assertListEqual(self, list1, list2, msg=None) `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.` assertMultiLineEqual(self, first, second, msg=None) `Assert that two multi-line strings are equal.` assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertNotAlmostEquals = assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertNotEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotEquals = assertNotEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotIn(self, member, container, msg=None) `Just like assertTrue(a not in b), but with a nicer default message.` assertNotIsInstance(self, obj, cls, msg=None) `Included for symmetry with assertIsInstance.` assertNotRegexpMatches(self, text, unexpected_regexp, msg=None) `Fail the test if the text matches the regular expression.` assertRaises(self, excClass, callableObj=None, *args, **kwargs) `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 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 assertRaises(SomeException) as cm: do_something() the_exception = cm.exception assertEqual(the_exception.error_code, 3)` assertRaisesRegexp(self, expected_exception, expected_regexp, callable_obj=None, *args, **kwargs) `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.` assertRegexpMatches(self, text, expected_regexp, msg=None) `Fail the test unless the text matches the regular expression.` assertSequenceEqual(self, seq1, seq2, msg=None, seq_type=None) `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.` assertSetEqual(self, set1, set2, msg=None) `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).` assertTrue(self, expr, msg=None) `Check that the expression is true.` assertTupleEqual(self, tuple1, tuple2, msg=None) `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.` assert_ = assertTrue(self, expr, msg=None) `Check that the expression is true.` countTestCases(self) debug(self) `Run the test without collecting errors in a TestResult` defaultTestResult(self) doCleanups(self) `Execute all cleanup functions. Normally called for you after tearDown.` fail(self, msg=None) `Fail immediately, with the given message.` failIf = deprecated_func(*args, **kwargs) failIfAlmostEqual = deprecated_func(*args, **kwargs) failIfEqual = deprecated_func(*args, **kwargs) failUnless = deprecated_func(*args, **kwargs) failUnlessAlmostEqual = deprecated_func(*args, **kwargs) failUnlessEqual = deprecated_func(*args, **kwargs) failUnlessRaises = deprecated_func(*args, **kwargs) id(self) run(self, result=None) shortDescription(self) `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.` skipTest(self, reason) `Skip this test.` tearDown(self) `Hook method for deconstructing the test fixture after testing it.` Class methods inherited from unittest.case.TestCase: setUpClass(cls) from __builtin__.type `Hook method for setting up class fixture before running tests in the class.` tearDownClass(cls) from __builtin__.type `Hook method for deconstructing the class fixture after running all tests in the class.` Data descriptors inherited from unittest.case.TestCase: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from unittest.case.TestCase: failureException = <type 'exceptions.AssertionError'> `Assertion failed.` longMessage = False maxDiff = 640
class DistributedCircuitTestCase(MediaTestCase)
`` |  | Method resolution order: DistributedCircuitTestCase MediaTestCase unittest.case.TestCase __builtin__.object Methods defined here: setUp(self) Methods inherited from MediaTestCase: test_capacitor(self) test_characterisitc_impedance_value(self) test_delay_load(self) test_delay_open(self) test_delay_short(self) test_impedance_mismatch(self) test_inductor(self) test_line(self) test_load(self) test_match(self) test_open(self) test_propagation_constant(self) test_short(self) test_shunt_delay_load(self) test_shunt_delay_open(self) test_shunt_delay_short(self) test_splitter(self) test_tee(self) test_thru(self) Methods inherited from unittest.case.TestCase: __call__(self, *args, **kwds) __eq__(self, other) __hash__(self) __init__(self, methodName='runTest') `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.` __ne__(self, other) __repr__(self) __str__(self) addCleanup(self, function, *args, **kwargs) `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).` addTypeEqualityFunc(self, typeobj, function) `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.` assertAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertAlmostEquals = assertAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertDictContainsSubset(self, expected, actual, msg=None) `Checks whether actual is a superset of expected.` assertDictEqual(self, d1, d2, msg=None) assertEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '==' operator.` assertEquals = assertEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '==' operator.` assertFalse(self, expr, msg=None) `Check that the expression is false.` assertGreater(self, a, b, msg=None) `Just like assertTrue(a > b), but with a nicer default message.` assertGreaterEqual(self, a, b, msg=None) `Just like assertTrue(a >= b), but with a nicer default message.` assertIn(self, member, container, msg=None) `Just like assertTrue(a in b), but with a nicer default message.` assertIs(self, expr1, expr2, msg=None) `Just like assertTrue(a is b), but with a nicer default message.` assertIsInstance(self, obj, cls, msg=None) `Same as assertTrue(isinstance(obj, cls)), with a nicer default message.` assertIsNone(self, obj, msg=None) `Same as assertTrue(obj is None), with a nicer default message.` assertIsNot(self, expr1, expr2, msg=None) `Just like assertTrue(a is not b), but with a nicer default message.` assertIsNotNone(self, obj, msg=None) `Included for symmetry with assertIsNone.` assertItemsEqual(self, expected_seq, actual_seq, msg=None) `An unordered sequence specific comparison. It asserts that actual_seq and expected_seq have the same element counts. Equivalent to:: 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.` assertLess(self, a, b, msg=None) `Just like assertTrue(a < b), but with a nicer default message.` assertLessEqual(self, a, b, msg=None) `Just like assertTrue(a <= b), but with a nicer default message.` assertListEqual(self, list1, list2, msg=None) `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.` assertMultiLineEqual(self, first, second, msg=None) `Assert that two multi-line strings are equal.` assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertNotAlmostEquals = assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertNotEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotEquals = assertNotEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotIn(self, member, container, msg=None) `Just like assertTrue(a not in b), but with a nicer default message.` assertNotIsInstance(self, obj, cls, msg=None) `Included for symmetry with assertIsInstance.` assertNotRegexpMatches(self, text, unexpected_regexp, msg=None) `Fail the test if the text matches the regular expression.` assertRaises(self, excClass, callableObj=None, *args, **kwargs) `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 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 assertRaises(SomeException) as cm: do_something() the_exception = cm.exception assertEqual(the_exception.error_code, 3)` assertRaisesRegexp(self, expected_exception, expected_regexp, callable_obj=None, *args, **kwargs) `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.` assertRegexpMatches(self, text, expected_regexp, msg=None) `Fail the test unless the text matches the regular expression.` assertSequenceEqual(self, seq1, seq2, msg=None, seq_type=None) `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.` assertSetEqual(self, set1, set2, msg=None) `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).` assertTrue(self, expr, msg=None) `Check that the expression is true.` assertTupleEqual(self, tuple1, tuple2, msg=None) `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.` assert_ = assertTrue(self, expr, msg=None) `Check that the expression is true.` countTestCases(self) debug(self) `Run the test without collecting errors in a TestResult` defaultTestResult(self) doCleanups(self) `Execute all cleanup functions. Normally called for you after tearDown.` fail(self, msg=None) `Fail immediately, with the given message.` failIf = deprecated_func(*args, **kwargs) failIfAlmostEqual = deprecated_func(*args, **kwargs) failIfEqual = deprecated_func(*args, **kwargs) failUnless = deprecated_func(*args, **kwargs) failUnlessAlmostEqual = deprecated_func(*args, **kwargs) failUnlessEqual = deprecated_func(*args, **kwargs) failUnlessRaises = deprecated_func(*args, **kwargs) id(self) run(self, result=None) shortDescription(self) `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.` skipTest(self, reason) `Skip this test.` tearDown(self) `Hook method for deconstructing the test fixture after testing it.` Class methods inherited from unittest.case.TestCase: setUpClass(cls) from __builtin__.type `Hook method for setting up class fixture before running tests in the class.` tearDownClass(cls) from __builtin__.type `Hook method for deconstructing the class fixture after running all tests in the class.` Data descriptors inherited from unittest.case.TestCase: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from unittest.case.TestCase: failureException = <type 'exceptions.AssertionError'> `Assertion failed.` longMessage = False maxDiff = 640
class FreespaceTestCase(MediaTestCase)
`` |  | Method resolution order: FreespaceTestCase MediaTestCase unittest.case.TestCase __builtin__.object Methods defined here: setUp(self) test_characterisitc_impedance_value(self) Methods inherited from MediaTestCase: test_capacitor(self) test_delay_load(self) test_delay_open(self) test_delay_short(self) test_impedance_mismatch(self) test_inductor(self) test_line(self) test_load(self) test_match(self) test_open(self) test_propagation_constant(self) test_short(self) test_shunt_delay_load(self) test_shunt_delay_open(self) test_shunt_delay_short(self) test_splitter(self) test_tee(self) test_thru(self) Methods inherited from unittest.case.TestCase: __call__(self, *args, **kwds) __eq__(self, other) __hash__(self) __init__(self, methodName='runTest') `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.` __ne__(self, other) __repr__(self) __str__(self) addCleanup(self, function, *args, **kwargs) `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).` addTypeEqualityFunc(self, typeobj, function) `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.` assertAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertAlmostEquals = assertAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertDictContainsSubset(self, expected, actual, msg=None) `Checks whether actual is a superset of expected.` assertDictEqual(self, d1, d2, msg=None) assertEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '==' operator.` assertEquals = assertEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '==' operator.` assertFalse(self, expr, msg=None) `Check that the expression is false.` assertGreater(self, a, b, msg=None) `Just like assertTrue(a > b), but with a nicer default message.` assertGreaterEqual(self, a, b, msg=None) `Just like assertTrue(a >= b), but with a nicer default message.` assertIn(self, member, container, msg=None) `Just like assertTrue(a in b), but with a nicer default message.` assertIs(self, expr1, expr2, msg=None) `Just like assertTrue(a is b), but with a nicer default message.` assertIsInstance(self, obj, cls, msg=None) `Same as assertTrue(isinstance(obj, cls)), with a nicer default message.` assertIsNone(self, obj, msg=None) `Same as assertTrue(obj is None), with a nicer default message.` assertIsNot(self, expr1, expr2, msg=None) `Just like assertTrue(a is not b), but with a nicer default message.` assertIsNotNone(self, obj, msg=None) `Included for symmetry with assertIsNone.` assertItemsEqual(self, expected_seq, actual_seq, msg=None) `An unordered sequence specific comparison. It asserts that actual_seq and expected_seq have the same element counts. Equivalent to:: 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.` assertLess(self, a, b, msg=None) `Just like assertTrue(a < b), but with a nicer default message.` assertLessEqual(self, a, b, msg=None) `Just like assertTrue(a <= b), but with a nicer default message.` assertListEqual(self, list1, list2, msg=None) `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.` assertMultiLineEqual(self, first, second, msg=None) `Assert that two multi-line strings are equal.` assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertNotAlmostEquals = assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertNotEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotEquals = assertNotEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotIn(self, member, container, msg=None) `Just like assertTrue(a not in b), but with a nicer default message.` assertNotIsInstance(self, obj, cls, msg=None) `Included for symmetry with assertIsInstance.` assertNotRegexpMatches(self, text, unexpected_regexp, msg=None) `Fail the test if the text matches the regular expression.` assertRaises(self, excClass, callableObj=None, *args, **kwargs) `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 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 assertRaises(SomeException) as cm: do_something() the_exception = cm.exception assertEqual(the_exception.error_code, 3)` assertRaisesRegexp(self, expected_exception, expected_regexp, callable_obj=None, *args, **kwargs) `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.` assertRegexpMatches(self, text, expected_regexp, msg=None) `Fail the test unless the text matches the regular expression.` assertSequenceEqual(self, seq1, seq2, msg=None, seq_type=None) `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.` assertSetEqual(self, set1, set2, msg=None) `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).` assertTrue(self, expr, msg=None) `Check that the expression is true.` assertTupleEqual(self, tuple1, tuple2, msg=None) `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.` assert_ = assertTrue(self, expr, msg=None) `Check that the expression is true.` countTestCases(self) debug(self) `Run the test without collecting errors in a TestResult` defaultTestResult(self) doCleanups(self) `Execute all cleanup functions. Normally called for you after tearDown.` fail(self, msg=None) `Fail immediately, with the given message.` failIf = deprecated_func(*args, **kwargs) failIfAlmostEqual = deprecated_func(*args, **kwargs) failIfEqual = deprecated_func(*args, **kwargs) failUnless = deprecated_func(*args, **kwargs) failUnlessAlmostEqual = deprecated_func(*args, **kwargs) failUnlessEqual = deprecated_func(*args, **kwargs) failUnlessRaises = deprecated_func(*args, **kwargs) id(self) run(self, result=None) shortDescription(self) `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.` skipTest(self, reason) `Skip this test.` tearDown(self) `Hook method for deconstructing the test fixture after testing it.` Class methods inherited from unittest.case.TestCase: setUpClass(cls) from __builtin__.type `Hook method for setting up class fixture before running tests in the class.` tearDownClass(cls) from __builtin__.type `Hook method for deconstructing the class fixture after running all tests in the class.` Data descriptors inherited from unittest.case.TestCase: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from unittest.case.TestCase: failureException = <type 'exceptions.AssertionError'> `Assertion failed.` longMessage = False maxDiff = 640
class MediaTestCase(unittest.case.TestCase)
`` |  | Method resolution order: MediaTestCase unittest.case.TestCase __builtin__.object Methods defined here: test_capacitor(self) test_characterisitc_impedance_value(self) test_delay_load(self) test_delay_open(self) test_delay_short(self) test_impedance_mismatch(self) test_inductor(self) test_line(self) test_load(self) test_match(self) test_open(self) test_propagation_constant(self) test_short(self) test_shunt_delay_load(self) test_shunt_delay_open(self) test_shunt_delay_short(self) test_splitter(self) test_tee(self) test_thru(self) Methods inherited from unittest.case.TestCase: __call__(self, *args, **kwds) __eq__(self, other) __hash__(self) __init__(self, methodName='runTest') `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.` __ne__(self, other) __repr__(self) __str__(self) addCleanup(self, function, *args, **kwargs) `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).` addTypeEqualityFunc(self, typeobj, function) `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.` assertAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertAlmostEquals = assertAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertDictContainsSubset(self, expected, actual, msg=None) `Checks whether actual is a superset of expected.` assertDictEqual(self, d1, d2, msg=None) assertEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '==' operator.` assertEquals = assertEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '==' operator.` assertFalse(self, expr, msg=None) `Check that the expression is false.` assertGreater(self, a, b, msg=None) `Just like assertTrue(a > b), but with a nicer default message.` assertGreaterEqual(self, a, b, msg=None) `Just like assertTrue(a >= b), but with a nicer default message.` assertIn(self, member, container, msg=None) `Just like assertTrue(a in b), but with a nicer default message.` assertIs(self, expr1, expr2, msg=None) `Just like assertTrue(a is b), but with a nicer default message.` assertIsInstance(self, obj, cls, msg=None) `Same as assertTrue(isinstance(obj, cls)), with a nicer default message.` assertIsNone(self, obj, msg=None) `Same as assertTrue(obj is None), with a nicer default message.` assertIsNot(self, expr1, expr2, msg=None) `Just like assertTrue(a is not b), but with a nicer default message.` assertIsNotNone(self, obj, msg=None) `Included for symmetry with assertIsNone.` assertItemsEqual(self, expected_seq, actual_seq, msg=None) `An unordered sequence specific comparison. It asserts that actual_seq and expected_seq have the same element counts. Equivalent to:: 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.` assertLess(self, a, b, msg=None) `Just like assertTrue(a < b), but with a nicer default message.` assertLessEqual(self, a, b, msg=None) `Just like assertTrue(a <= b), but with a nicer default message.` assertListEqual(self, list1, list2, msg=None) `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.` assertMultiLineEqual(self, first, second, msg=None) `Assert that two multi-line strings are equal.` assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertNotAlmostEquals = assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertNotEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotEquals = assertNotEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotIn(self, member, container, msg=None) `Just like assertTrue(a not in b), but with a nicer default message.` assertNotIsInstance(self, obj, cls, msg=None) `Included for symmetry with assertIsInstance.` assertNotRegexpMatches(self, text, unexpected_regexp, msg=None) `Fail the test if the text matches the regular expression.` assertRaises(self, excClass, callableObj=None, *args, **kwargs) `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 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 assertRaises(SomeException) as cm: do_something() the_exception = cm.exception assertEqual(the_exception.error_code, 3)` assertRaisesRegexp(self, expected_exception, expected_regexp, callable_obj=None, *args, **kwargs) `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.` assertRegexpMatches(self, text, expected_regexp, msg=None) `Fail the test unless the text matches the regular expression.` assertSequenceEqual(self, seq1, seq2, msg=None, seq_type=None) `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.` assertSetEqual(self, set1, set2, msg=None) `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).` assertTrue(self, expr, msg=None) `Check that the expression is true.` assertTupleEqual(self, tuple1, tuple2, msg=None) `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.` assert_ = assertTrue(self, expr, msg=None) `Check that the expression is true.` countTestCases(self) debug(self) `Run the test without collecting errors in a TestResult` defaultTestResult(self) doCleanups(self) `Execute all cleanup functions. Normally called for you after tearDown.` fail(self, msg=None) `Fail immediately, with the given message.` failIf = deprecated_func(*args, **kwargs) failIfAlmostEqual = deprecated_func(*args, **kwargs) failIfEqual = deprecated_func(*args, **kwargs) failUnless = deprecated_func(*args, **kwargs) failUnlessAlmostEqual = deprecated_func(*args, **kwargs) failUnlessEqual = deprecated_func(*args, **kwargs) failUnlessRaises = deprecated_func(*args, **kwargs) id(self) run(self, result=None) setUp(self) `Hook method for setting up the test fixture before exercising it.` shortDescription(self) `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.` skipTest(self, reason) `Skip this test.` tearDown(self) `Hook method for deconstructing the test fixture after testing it.` Class methods inherited from unittest.case.TestCase: setUpClass(cls) from __builtin__.type `Hook method for setting up class fixture before running tests in the class.` tearDownClass(cls) from __builtin__.type `Hook method for deconstructing the class fixture after running all tests in the class.` Data descriptors inherited from unittest.case.TestCase: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from unittest.case.TestCase: failureException = <type 'exceptions.AssertionError'> `Assertion failed.` longMessage = False maxDiff = 640
class RectangularWaveguideTestCase(MediaTestCase)
`` |  | Method resolution order: RectangularWaveguideTestCase MediaTestCase unittest.case.TestCase __builtin__.object Methods defined here: setUp(self) Methods inherited from MediaTestCase: test_capacitor(self) test_characterisitc_impedance_value(self) test_delay_load(self) test_delay_open(self) test_delay_short(self) test_impedance_mismatch(self) test_inductor(self) test_line(self) test_load(self) test_match(self) test_open(self) test_propagation_constant(self) test_short(self) test_shunt_delay_load(self) test_shunt_delay_open(self) test_shunt_delay_short(self) test_splitter(self) test_tee(self) test_thru(self) Methods inherited from unittest.case.TestCase: __call__(self, *args, **kwds) __eq__(self, other) __hash__(self) __init__(self, methodName='runTest') `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.` __ne__(self, other) __repr__(self) __str__(self) addCleanup(self, function, *args, **kwargs) `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).` addTypeEqualityFunc(self, typeobj, function) `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.` assertAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertAlmostEquals = assertAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertDictContainsSubset(self, expected, actual, msg=None) `Checks whether actual is a superset of expected.` assertDictEqual(self, d1, d2, msg=None) assertEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '==' operator.` assertEquals = assertEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '==' operator.` assertFalse(self, expr, msg=None) `Check that the expression is false.` assertGreater(self, a, b, msg=None) `Just like assertTrue(a > b), but with a nicer default message.` assertGreaterEqual(self, a, b, msg=None) `Just like assertTrue(a >= b), but with a nicer default message.` assertIn(self, member, container, msg=None) `Just like assertTrue(a in b), but with a nicer default message.` assertIs(self, expr1, expr2, msg=None) `Just like assertTrue(a is b), but with a nicer default message.` assertIsInstance(self, obj, cls, msg=None) `Same as assertTrue(isinstance(obj, cls)), with a nicer default message.` assertIsNone(self, obj, msg=None) `Same as assertTrue(obj is None), with a nicer default message.` assertIsNot(self, expr1, expr2, msg=None) `Just like assertTrue(a is not b), but with a nicer default message.` assertIsNotNone(self, obj, msg=None) `Included for symmetry with assertIsNone.` assertItemsEqual(self, expected_seq, actual_seq, msg=None) `An unordered sequence specific comparison. It asserts that actual_seq and expected_seq have the same element counts. Equivalent to:: 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.` assertLess(self, a, b, msg=None) `Just like assertTrue(a < b), but with a nicer default message.` assertLessEqual(self, a, b, msg=None) `Just like assertTrue(a <= b), but with a nicer default message.` assertListEqual(self, list1, list2, msg=None) `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.` assertMultiLineEqual(self, first, second, msg=None) `Assert that two multi-line strings are equal.` assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertNotAlmostEquals = assertNotAlmostEqual(self, first, second, places=None, msg=None, delta=None) `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.` assertNotEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotEquals = assertNotEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotIn(self, member, container, msg=None) `Just like assertTrue(a not in b), but with a nicer default message.` assertNotIsInstance(self, obj, cls, msg=None) `Included for symmetry with assertIsInstance.` assertNotRegexpMatches(self, text, unexpected_regexp, msg=None) `Fail the test if the text matches the regular expression.` assertRaises(self, excClass, callableObj=None, *args, **kwargs) `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 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 assertRaises(SomeException) as cm: do_something() the_exception = cm.exception assertEqual(the_exception.error_code, 3)` assertRaisesRegexp(self, expected_exception, expected_regexp, callable_obj=None, *args, **kwargs) `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.` assertRegexpMatches(self, text, expected_regexp, msg=None) `Fail the test unless the text matches the regular expression.` assertSequenceEqual(self, seq1, seq2, msg=None, seq_type=None) `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.` assertSetEqual(self, set1, set2, msg=None) `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).` assertTrue(self, expr, msg=None) `Check that the expression is true.` assertTupleEqual(self, tuple1, tuple2, msg=None) `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.` assert_ = assertTrue(self, expr, msg=None) `Check that the expression is true.` countTestCases(self) debug(self) `Run the test without collecting errors in a TestResult` defaultTestResult(self) doCleanups(self) `Execute all cleanup functions. Normally called for you after tearDown.` fail(self, msg=None) `Fail immediately, with the given message.` failIf = deprecated_func(*args, **kwargs) failIfAlmostEqual = deprecated_func(*args, **kwargs) failIfEqual = deprecated_func(*args, **kwargs) failUnless = deprecated_func(*args, **kwargs) failUnlessAlmostEqual = deprecated_func(*args, **kwargs) failUnlessEqual = deprecated_func(*args, **kwargs) failUnlessRaises = deprecated_func(*args, **kwargs) id(self) run(self, result=None) shortDescription(self) `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.` skipTest(self, reason) `Skip this test.` tearDown(self) `Hook method for deconstructing the test fixture after testing it.` Class methods inherited from unittest.case.TestCase: setUpClass(cls) from __builtin__.type `Hook method for setting up class fixture before running tests in the class.` tearDownClass(cls) from __builtin__.type `Hook method for deconstructing the class fixture after running all tests in the class.` Data descriptors inherited from unittest.case.TestCase: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from unittest.case.TestCase: failureException = <type 'exceptions.AssertionError'> `Assertion failed.` longMessage = False maxDiff = 640

Data
`` |  | Avogadro = 6.0221415e+23 Bolzmann = 1.3806505e-23 Btu = 1055.05585262 Btu_IT = 1055.05585262 Btu_th = 1054.3502644888888 G = 6.6742e-11 Julian_year = 31557600.0 N_A = 6.0221415e+23 Planck = 6.6260693e-34 R = 8.314472 Rydberg = 10973731.568525 Stefan_Bolzmann = 5.6704e-08 Wien = 0.0028977685 acre = 4046.8564223999992 alpha = 0.007297352568 angstrom = 1e-10 arcmin = 0.0002908882086657216 arcminute = 0.0002908882086657216 arcsec = 4.84813681109536e-06 arcsecond = 4.84813681109536e-06 astronomical_unit = 149597870691.0 atm = 101325.0 atmosphere = 101325.0 atomic_mass = 1.66053886e-27 atto = 1e-18 au = 149597870691.0 bar = 100000.0 barrel = 0.15898729492799998 bbl = 0.15898729492799998 c = 299792458.0 calorie = 4.184 calorie_IT = 4.1868 calorie_th = 4.184 carat = 0.0002 centi = 0.01 day = 86400.0 deci = 0.1 degree = 0.017453292519943295 degree_Fahrenheit = 0.5555555555555556 deka = 10.0 dyn = 1e-05 dyne = 1e-05 e = 1.60217653e-19 eV = 1.60217653e-19 electron_mass = 9.1093826e-31 electron_volt = 1.60217653e-19 elementary_charge = 1.60217653e-19 epsilon_0 = 8.854187817620389e-12 erg = 1e-07 exa = 1e+18 exbi = 1152921504606846976 femto = 1e-15 fermi = 1e-15 fine_structure = 0.007297352568 fluid_ounce = 2.9573529562499998e-05 fluid_ounce_US = 2.9573529562499998e-05 fluid_ounce_imp = 2.84130625e-05 foot = 0.30479999999999996 g = 9.80665 gallon = 0.0037854117839999997 gallon_US = 0.0037854117839999997 gallon_imp = 0.00454609 gas_constant = 8.314472 gibi = 1073741824 giga = 1000000000.0 golden = 1.618033988749895 golden_ratio = 1.618033988749895 grain = 6.479891e-05 gram = 0.001 gravitational_constant = 6.6742e-11 h = 6.6260693e-34 hbar = 1.0545716823644548e-34 hectare = 10000.0 hecto = 100.0 horsepower = 745.6998715822701 hour = 3600.0 hp = 745.6998715822701 inch = 0.0254 k = 1.3806505e-23 kgf = 9.80665 kibi = 1024 kilo = 1000.0 kilogram_force = 9.80665 kmh = 0.2777777777777778 knot = 0.5144444444444445 lb = 0.45359236999999997 lbf = 4.4482216152605 light_year = 9460730472580800.0 liter = 0.001 litre = 0.001 loader = <unittest.loader.TestLoader object> long_ton = 1016.0469088 m_e = 9.1093826e-31 m_n = 1.67492728e-27 m_p = 1.67262171e-27 m_u = 1.66053886e-27 mach = 340.5 mebi = 1048576 mega = 1000000.0 metric_ton = 1000.0 micro = 1e-06 micron = 1e-06 mil = 2.5399999999999997e-05 mile = 1609.3439999999998 milli = 0.001 minute = 60.0 mmHg = 133.32236842105263 mph = 0.44703999999999994 mu_0 = 1.2566370614359173e-06 nano = 1e-09 nautical_mile = 1852.0 neutron_mass = 1.67492728e-27 ounce = 0.028349523124999998 oz = 0.028349523124999998 parsec = 3.0856775813057292e+16 pebi = 1125899906842624 peta = 1000000000000000.0 physical_constants = {'Angstrom star': (1.00001509e-10, 'm', 9e-17), 'Avogadro constant': (6.0221415e+23, 'mol^-1', 1e+17), 'Bohr magneton': (9.27400949e-24, 'J T^-1', 8e-31), 'Bohr magneton in Hz/T': (13996245800.0, 'Hz T^-1', 1200.0), 'Bohr magneton in K/T': (0.6717131, 'K T^-1', 1.2e-06), 'Bohr magneton in eV/T': (5.788381804e-05, 'eV T^-1', 3.9e-13), 'Bohr magneton in inverse meters per tesla': (46.6864507, 'm^-1 T^-1', 4e-06), 'Bohr radius': (5.291772108e-11, 'm', 1.8e-19), 'Boltzmann constant': (1.3806505e-23, 'J K^-1', 2.4e-29), 'Boltzmann constant in Hz/K': (20836644000.0, 'Hz K^-1', 36000.0), ...} pi = 3.141592653589793 pico = 1e-12 point = 0.00035277777777777776 pound = 0.45359236999999997 pound_force = 4.4482216152605 proton_mass = 1.67262171e-27 psi = 6894.757293168361 pt = 0.00035277777777777776 short_ton = 907.1847399999999 sigma = 5.6704e-08 speed_of_light = 299792458.0 speed_of_sound = 340.5 stone = 6.3502931799999995 suite = <unittest.suite.TestSuite tests=[<unittest.suite...tributedCircuitTestCase testMethod=test_thru>]>]> survey_foot = 0.3048006096012192 survey_mile = 1609.3472186944373 tebi = 1099511627776 tera = 1000000000000.0 ton_TNT = 4184000000.0 torr = 133.32236842105263 troy_ounce = 0.031103476799999998 troy_pound = 0.37324172159999996 u = 1.66053886e-27 week = 604800.0 yard = 0.9143999999999999 year = 31536000.0 yobi = 1208925819614629174706176L yotta = 1e+24 zebi = 1180591620717411303424L zepto = 1e-21 zero_Celsius = 273.15 zetta = 1e+21