コード例 #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]))
コード例 #2
0
ファイル: test_untiler_funcs.py プロジェクト: mapbox/untiler
def test_make_window_fails():
    with pytest.raises(ValueError):
        untiler.make_window(102, 13, 98, 50, 256)
    print("# OK - %s " % (inspect.stack()[0][3]))
コード例 #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]))
コード例 #4
0
ファイル: test_untiler_funcs.py プロジェクト: mapbox/untiler
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]))