Example #1
0
def test_filler_fails4():
    with pytest.raises(TypeError):
        filler(0x00, "hello")
Example #2
0
def filler_0_16():
    return Section(data=filler(0x00, 16))
Example #3
0
def test_filler_fails3():
    with pytest.raises(TypeError):
        filler("hello", 10)
Example #4
0
def test_filler_fails2():
    with pytest.raises(ValueError):
        filler(1000, 10)
Example #5
0
def test_filler_fails1():
    with pytest.raises(ValueError):
        filler(0xff, 0)
Example #6
0
def test_filler2():
    assert filler(0xff, 16) == b'\xff' * 16
Example #7
0
def test_filler1():
    assert filler(0x00, 16) == b'\x00' * 16