Example #1
0
def test_make_window_fails():
    with pytest.raises(ValueError):
        untiler.make_window(102, 13, 98, 50, 256)
    print("# OK - %s " % (inspect.stack()[0][3]))
Example #2
0
def test_make_window_fails():
    with pytest.raises(ValueError):
        untiler.make_window(102, 13, 98, 50, 256)
    print("# OK - %s " % (inspect.stack()[0][3]))
Example #3
0
def test_make_window():
    expected = ((23808, 24064), (1024, 1280))
    window = untiler.make_window(102, 343, 98, 250, 256)

    assert window == expected
    print("# OK - %s " % (inspect.stack()[0][3]))
Example #4
0
def test_make_window():
    expected = ((23808, 24064), (1024, 1280))
    window = untiler.make_window(102, 343, 98, 250, 256)

    assert window == expected
    print("# OK - %s " % (inspect.stack()[0][3]))