def check_level_location(self, layout, level, path): cache = FileCache('/tmp/foo', 'png', directory_layout=layout) eq_(cache.level_location(level), path)
def test_level_location(self, layout, level, path): cache = FileCache('/tmp/foo', 'png', directory_layout=layout) assert os.path.abspath( cache.level_location(level)) == os.path.abspath(path)
def test_level_location_quadkey(self): cache = FileCache('/tmp/foo', 'png', directory_layout='quadkey') with pytest.raises(NotImplementedError): cache.level_location(0)
def check_level_location(self, layout, level, path): cache = FileCache('/tmp/foo', 'png', directory_layout=layout) eq_(cache.level_location(level), path)