def test_image_template(self): c = CreatedImageContent() c.image = "test.png" self.assertEqual(c.render().strip(), '<img style="display:block" src="/media-test-path/test.png">')
def test_image_str_repr(self): c = CreatedImageContent() c.image = "test.png" self.assertEqual(unicode(c), u"test.png")