Example #1
0
 def test_image_upload_to(self):
     self.assertIsNotNone(re.search(
         'image/original/by-md5/[a-f0-9]/[a-f0-9]/[a-f0-9]{32}/test-image.png',
         models.image_upload_to(self.image, 'test-image.png')
     ))
Example #2
0
 def test_image_upload_to(self):
     self.assertIsNotNone(
         re.search(
             'image/original/by-md5/[a-f0-9]/[a-f0-9]/[a-f0-9]{32}/test-image.png',
             models.image_upload_to(self.image, 'test-image.png')))
Example #3
0
 def test_image_upload_to(self):
     self.assertEqual(
         models.image_upload_to(self.image, 'test-image.png'),
         'image/original/by-md5/4/e/4edc7685d17aa4d5c0c07a44e0e44f27/test-image.png'
     )