Beispiel #1
0
class CUITFileTest(TestCase):
    def setUp(self):
        self.file = CUITFLVFileFactory()

    def test_extension(self):
        assert self.file.video.extension() == ".flv"

    def test_is_cuit(self):
        assert self.file.is_cuit()

    def test_surelinkable(self):
        assert self.file.surelinkable()

    def test_mediathread_url(self):
        self.assertEqual(
            self.file.video.mediathread_url(),
            ("http://ccnmtl.columbia.edu/stream/flv/"
             "99bd1007cd733e65d12d0f843e1a9f5c1f28dec2"
             "/OPTIONS/secure/courses/"
             "56d27944-4131-11e1-8164-0017f20ea192-"
             "Mediathread_video_uploaded_by_mlp55.flv"))

    def test_poster_url(self):
        assert not self.file.has_cuit_poster()
        assert self.file.video.cuit_poster_url() is None

    def test_filename(self):
        assert self.file.video.filename() == self.file.filename

    def test_cuit_url(self):
        assert self.file.cuit_public_url() == (
            "http://ccnmtl.columbia.edu/stream/flv/secure/courses/"
            "56d27944-4131-11e1-8164-0017f20ea192-"
            "Mediathread_video_uploaded_by_mlp55.flv")
        assert self.file.video.cuit_url() == self.file.cuit_public_url()
Beispiel #2
0
 def setUp(self):
     self.file = CUITFLVFileFactory()