예제 #1
0
def test_to_nbytes_incorrect(arg):
    with raises(ValueError):
        to_nbytes(arg)
예제 #2
0
def test_to_nbytes_incorrect(arg):
    with raises(ValueError):
        to_nbytes(arg)
예제 #3
0
def test_to_nbytes_correct(arg, expected):
    n = to_nbytes(arg)
    assert n == expected
예제 #4
0
def test_to_nbytes_correct(arg, expected):
    n = to_nbytes(arg)
    assert n == expected