Ejemplo n.º 1
0
 def test_storage_name_override_suffix(self):
     thumbnail = Thumbnail('test.jpg', {'size': ['100', '50']})
     assert thumbnail.get_storage_name(suffix='foo') == (
         '3cfbc9962355c42f448931e11442cb2c7341ec76/test.foo')
Ejemplo n.º 2
0
 def test_storage_name_factored(self):
     thumbnail = Thumbnail('test.jpg', {'size': ['100', '50']})
     assert thumbnail.get_storage_name(2) == os.path.join(
         '2x', thumbnail.get_name())
 def test_storage_name_factored(self):
     thumbnail = Thumbnail('test.jpg', {'size': ['100', '50']})
     assert thumbnail.get_storage_name(2) == os.path.join('2x', thumbnail.get_name())
Ejemplo n.º 4
0
 def test_storage_name(self):
     thumbnail = Thumbnail('test.jpg', {'size': ['100', '50']})
     assert thumbnail.get_storage_name() == thumbnail.get_name()
 def test_storage_name(self):
     thumbnail = Thumbnail('test.jpg', {'size': ['100', '50']})
     assert thumbnail.get_storage_name() == thumbnail.get_name()