Beispiel #1
0
def test_validate_sortby_valid(sortby):
    tilesets = Tilesets()
    result = tilesets._validate_sortby(sortby)
    assert result == sortby
Beispiel #2
0
def test_validate_sortby_invalid():
    tilesets = Tilesets()

    with raises(InvalidSortbyError) as exception:
        sortby = "invalid"
        result = tilesets._validate_sortby(sortby)