tests.size.conversions_test module

Tests for operations on Range objects.

class tests.size.conversions_test.ConversionTestCase(methodName='runTest')

Bases: unittest.case.TestCase

Test conversions.

testBool()

Test conversion to bool.

Note that bool calls __bool__() in Python 3, __nonzero__ in Python2.

testDeepCopy()

Test that deepcopy is different but equal.

testFloat()

Test float conversion.

Converting a Range to a float should require some effort.

testInt()

Test integer conversions.

testRepr()

Test that repr looks right.

Previous topic

tests.size package

Next topic

tests.size.initializer_test module

This Page