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