Example #1
0
 def test_add_video(self):
     elearning = MyElearning()
     elearning.connect()
     elearning.read_videos()
     list_videos = elearning.list_videos
     init_size = len(list_videos)
     elearning.add_video(
         "Cours Python 3",
         "https://www.youtube.com/watch?v=HWxBtxPBCAc&list=PLrSOXFDHBtfHg8fWBd7sKPxEmahwyVBkC",
         3)
     list_videos = elearning.list_videos
     self.assertFalse(init_size == len(list_videos))
Example #2
0
 def test_read_videos(self):
     elearning = MyElearning()
     elearning.connect()
     elearning.read_videos()
     list_videos = elearning.list_videos
     self.assertIsNotNone(list_videos)