Package VMBuilder :: Package tests :: Module disk_tests :: Class TestSizeParser
[frames] | no frames]

Class TestSizeParser

source code

testtools.TestCase --+
                     |
                    TestSizeParser

Instance Methods
 
test_suffixesAreCaseInsensitive(self)
Suffixes in size strings are case-insensitive
source code
 
test_suffixless_counts_as_megabytes(self)
Suffix-less size string are counted as megabytes
source code
 
test_M_suffix_counts_as_megabytes(self)
Sizes with M suffix are counted as megabytes
source code
 
test_G_suffix_counts_as_gigabytes(self)
1G is counted as 1024 megabytes
source code
 
test_K_suffix_counts_as_kilobytes(self)
1024K is counted as 1 megabyte
source code
 
test_rounds_size_to_nearest_megabyte(self)
parse_size rounds to nearest MB
source code