Beispiel #1
0
def test_convert_tile_id(test_case):
    """
    Take number from layer's data (JSON file) and assert it was correctly
    transformed to valid tile ID.
    """
    tile_number = test_case
    assert get_tile_id(tile_number) == CONVERT_TEST_DATA[test_case]["tile"]
Beispiel #2
0
def test_convert_tile_id(tile_number, converted_number):
    """
    Take number from layer's data (JSON file) and assert it was correctly
    transformed to valid tile ID.
    """
    assert get_tile_id(tile_number) == converted_number