Example #1
0
 def test_get_description(self):
     """
     get_description() should return the description HTML of the uStream
     video.
     """
     self.assertEquals(ustream.get_description(BASE_URL),
                       u"Terry Sanford Distinguished Lecturer Gail Rosseau "
                       u"in dialogue with John Harwood T\u201978 of The "
                       u"New York Times and CNBC.")
Example #2
0
 def test_get_description(self):
     """
     get_description() should return the description HTML of the uStream
     video.
     """
     self.assertEquals(
         ustream.get_description(BASE_URL),
         u"Terry Sanford Distinguished Lecturer Gail Rosseau "
         u"in dialogue with John Harwood T\u201978 of The "
         u"New York Times and CNBC.")
Example #3
0
 def set_values(self, video_obj):
     video_obj.title = ustream.get_title(self.url)
     video_obj.description = ustream.get_description(self.url)
     video_obj.thumbnail = ustream.get_thumbnail_url(self.url)
     return video_obj
Example #4
0
 def set_values(self, video_obj):
     video_obj.title = ustream.get_title(self.url)
     video_obj.description = ustream.get_description(self.url)
     video_obj.thumbnail = ustream.get_thumbnail_url(self.url)
     return video_obj