Exemplo n.º 1
0
 def test_get_media_info_image(self):
     """Gets image and format info."""
     img = image()
     info_img, info_format = _get_media_info(img.pk, 'image')
     eq_(img.pk, info_img.pk)
     eq_('jpeg', info_format)
Exemplo n.º 2
0
 def test_get_media_info_image(self):
     """Gets image and format info."""
     img = ImageFactory()
     info_img, info_format = _get_media_info(img.pk, "image")
     eq_(img.pk, info_img.pk)
     eq_("jpeg", info_format)
Exemplo n.º 3
0
 def test_get_media_info_video(self):
     """Gets video and format info."""
     vid = video()
     info_vid, info_format = _get_media_info(vid.pk, 'video')
     eq_(vid.pk, info_vid.pk)
     eq_(None, info_format)
Exemplo n.º 4
0
 def test_get_media_info_video(self):
     """Gets video and format info."""
     vid = VideoFactory()
     info_vid, info_format = _get_media_info(vid.pk, "video")
     eq_(vid.pk, info_vid.pk)
     eq_(None, info_format)