Module Expr Str ImportFrom alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Num decorator_list decorator_list
N/A N/A 
Test parsing strings into bitmath objects
 N/A TestCase N/A bitmath TestParse N/A TestCase N/A test_parse_b N/A N/A self N/A N/A N/A parse_string works on bit strings N/A N/A N/A self assertEqual N/A N/A bitmath parse_string 123b N/A N/A bitmath Bit 123 N/A test_parse_B N/A N/A self N/A N/A N/A parse_string works on byte strings N/A N/A N/A self assertEqual N/A N/A bitmath parse_string 321B N/A N/A bitmath Byte 321 N/A test_parse_Gb N/A N/A self N/A N/A N/A parse_string works on gigabit strings N/A N/A N/A self assertEqual N/A N/A bitmath parse_string 456Gb N/A N/A bitmath Gb 456 N/A test_parse_MiB N/A N/A self N/A N/A N/A parse_string works on mebibyte strings N/A N/A N/A self assertEqual N/A N/A bitmath parse_string 654 MiB N/A N/A bitmath MiB 654 N/A test_parse_Mio N/A N/A self N/A N/A N/A parse_string works on mebioctet strings N/A N/A N/A self assertEqual N/A N/A bitmath parse_string 654 Mio N/A N/A bitmath MiB 654 N/A test_parse_Eio N/A N/A self N/A N/A N/A parse_string works on exbioctet strings N/A N/A N/A self assertEqual N/A N/A bitmath parse_string 654 Eio N/A N/A bitmath EiB 654 N/A test_parse_Mo N/A N/A self N/A N/A N/A parse_string works on megaoctet strings N/A N/A N/A self assertEqual N/A N/A bitmath parse_string 654 Mo N/A N/A bitmath MB 654 N/A test_parse_Eo N/A N/A self N/A N/A N/A parse_string works on exaoctet strings N/A N/A N/A self assertEqual N/A N/A bitmath parse_string 654 Eo N/A N/A bitmath EB 654 N/A test_parse_bad_float N/A N/A self N/A N/A N/A parse_string can identify invalid float values N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A bitmath parse_string 1.23.45 kb N/A test_parse_bad_unit N/A N/A self N/A N/A N/A parse_string can identify invalid prefix units N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A bitmath parse_string 1.23 GIB N/A test_parse_bad_unit2 N/A N/A self N/A N/A N/A parse_string can identify other prefix units N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A bitmath parse_string 1.23 QB N/A test_parse_no_unit N/A N/A self N/A N/A N/A parse_string can identify strings without units at all N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A bitmath parse_string 12345 N/A test_parse_string_non_string_input N/A N/A self N/A N/A N/A parse_string can identify a non-string input N/A N/A N/A self assertRaises ValueError N/A N/A N/A N/A bitmath parse_string 12345 N/A test_parse_string_unicode N/A N/A self N/A N/A N/A parse_string can handle a unicode string N/A N/A N/A self assertEqual N/A N/A bitmath parse_string 750 GiB N/A N/A bitmath GiB 750 N/A N/A