Пример #1
0
 def check_level_location(self, layout, level, path):
     cache = FileCache('/tmp/foo', 'png', directory_layout=layout)
     eq_(cache.level_location(level), path)
Пример #2
0
 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)
Пример #3
0
 def test_level_location_quadkey(self):
     cache = FileCache('/tmp/foo', 'png', directory_layout='quadkey')
     with pytest.raises(NotImplementedError):
         cache.level_location(0)
Пример #4
0
 def check_level_location(self, layout, level, path):
     cache = FileCache('/tmp/foo', 'png', directory_layout=layout)
     eq_(cache.level_location(level), path)