tests.size.initializer_test module
Tests for Size initialization.
-
class tests.size.initializer_test.InitializerTestCase(methodName='runTest')
Bases: unittest.case.TestCase
Test conversions.
-
testExceptions()
Test exceptions.
-
testInitialization(s=HypothesisProvided(value=integers() | fractions() | decimals().filter(lambda x: x.is_finite()) | builds(<type 'str'>, decimals().filter(lambda x: x.is_finite()))), u=HypothesisProvided(value=sampled_from((B, KiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB, kB, MB, GB, TB, PB, EB, ZB, YB)) | builds(<class 'bytesize._size.Size'>, fractions())))
Test the initializer.