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"]
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