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') ))
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')))
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' )