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