Exemplo n.º 1
0
 def test_thumbnail_upload_to(self):
     self.assertIsNotNone(re.search(
         'image/thumbnail/by-md5/[a-f0-9]/[a-f0-9]/[a-f0-9]{32}/test-image.png',
         models.thumbnail_upload_to(self.image, 'test-image.png')
     ))
Exemplo n.º 2
0
 def test_thumbnail_upload_to(self):
     self.assertIsNotNone(
         re.search(
             'image/thumbnail/by-md5/[a-f0-9]/[a-f0-9]/[a-f0-9]{32}/test-image.png',
             models.thumbnail_upload_to(self.image, 'test-image.png')))
Exemplo n.º 3
0
 def test_thumbnail_upload_to(self):
     self.assertEqual(
         models.thumbnail_upload_to(self.image, 'test-image.png'),
         'image/thumbnail/by-md5/4/e/4edc7685d17aa4d5c0c07a44e0e44f27/test-image.png'
     )