示例#1
0
def comp_range_size(_in, expected):
    assert_equal(expected, from_human_size(str(_in),
                                           default=0,
                                           minimum=0,
                                           accept_range=True))
示例#2
0
def comp_range_size_fail(_in):
    from_human_size(str(_in), default=0,
                    minimum=0, accept_range=True)
示例#3
0
def comp_from_human_size(_in, expected, minimum, default):
    assert_equal(expected, from_human_size(str(_in),
                                           minimum=minimum, default=default))