Example #1
0
def test_cycle_find_not_found():
    assert pwny.cycle_find('\x00', width=1) == -1
Example #2
0
def test_cycle_find_start():
    assert pwny.cycle_find('AAAA') == 0
Example #3
0
def test_cycle_find():
    assert pwny.cycle_find('PAAA') == 60
Example #4
0
def test_cycle_find_not_found():
    assert pwny.cycle_find('\x00', width=1) == -1
Example #5
0
def test_cycle_find_start():
    assert pwny.cycle_find('AAAA') == 0
Example #6
0
def test_cycle_find():
    assert pwny.cycle_find('PAAA') == 60