Tests for behavior of Size objects.
Bases: unittest.case.TestCase
Test setting configuration for computation.
Get current config.
Reset configuration to default.
Test that error is raised on fractional bytes when EXACT is True.
Bases: unittest.case.TestCase
Test setting configuration for display.
Get current config.
Reset configuration to default.
Test that setting configuration to different values has effect.
Test str with various configuration options.
Behavior when deviation from whole value is small.
Bases: unittest.case.TestCase
Test construction of Size objects.
Test error checking in constructo.
Test creating Size with Fraction.
Test construction of negative sizes.
Test construction w/ no units specified.
Test construction with 0 as decimal.
Bases: unittest.case.TestCase
Test formatting Size for display.
Test that exceptions are properly raised on bad params.
Test behavior when the displayed value is a fraction of units.
Test behavior on min_value parameter.
Test that second part is B when rounding to bytes.
Test binary_units param.
Test construction of display components.