コード例 #1
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)
コード例 #2
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)
コード例 #3
0
ファイル: test_views.py プロジェクト: rtanglao/kitsune
 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)