tests.constants_test module

Test for constants classes.

class tests.constants_test.ConstantsTestCase(methodName='runTest')

Bases: unittest.case.TestCase

Exercise methods of constants classes.

testExpExceptions()

Test that exceptions are properly raised.

testExpMethod(bexp=HypothesisProvided(value=integers(min_value=0, max_value=8)), dexp=HypothesisProvided(value=integers(min_value=0, max_value=8)))

Test extracting unit for a given exponent.

testRoundingObjects()

Miscellaneous tests for rounding constants.

testUnitsMethod()

Test that all units constansts are in UNITS().

testUnitsObjects()

Miscellaneous tests for units constants.

Previous topic

tests.config_test module

Next topic

tests.errors_test module

This Page