Ejemplo n.º 1
0
 def test_get_prep_value(self):
     c = CloudinaryField('image')
     res = CloudinaryImage(public_id=API_TEST_ID, format='jpg')
     self.assertEqual(c.get_prep_value(res),
                      "image/upload/{}.jpg".format(API_TEST_ID))
Ejemplo n.º 2
0
 def test_get_prep_value(self):
     c = CloudinaryField('image')
     res = CloudinaryImage(public_id='sample', format='jpg')
     self.assertEqual(c.get_prep_value(res), "image/upload/sample.jpg")
 def test_get_prep_value(self):
     c = CloudinaryField('image')
     res = CloudinaryImage(public_id='sample', format='jpg')
     self.assertEqual(c.get_prep_value(res), "image/upload/sample.jpg")
 def test_get_prep_value(self):
     c = CloudinaryField('image')
     res = CloudinaryImage(public_id=API_TEST_ID, format='jpg')
     self.assertEqual(c.get_prep_value(res), "image/upload/{}.jpg".format(API_TEST_ID))