Example #1
0
def test_format_combine_resource_works_correctly():
    rv = coursera_dl.format_combine_number_resource(5, 4, "Moving_the_furniture", "The_Basics", "mp4")
    assert "05_04_Moving_the_furniture_The_Basics.mp4" == rv
Example #2
0
def test_format_combine_resource_works_correctly_without_title():
    rv = coursera_dl.format_combine_number_resource(5, 1, "Introduction", "", "mp4")
    assert "05_01_Introduction.mp4" == rv
Example #3
0
def test_format_combine_resource_works_correctly_without_title():
    rv = coursera_dl.format_combine_number_resource(5, 1, "Introduction", '',
                                                    "mp4")
    assert '05_01_Introduction.mp4' == rv
Example #4
0
def test_format_combine_resource_works_correctly():
    rv = coursera_dl.format_combine_number_resource(5, 4,
                                                    "Moving_the_furniture",
                                                    'The_Basics', "mp4")
    assert '05_04_Moving_the_furniture_The_Basics.mp4' == rv
Example #5
0
 def test_format_combine_resource_works_correctly_without_title(self):
     rv = coursera_dl.format_combine_number_resource(
         5, 1, "Introduction", '', "mp4")
     self.assertEqual('05_01_Introduction.mp4', rv)
Example #6
0
 def test_format_combine_resource_works_correctly_without_title(self):
     rv = coursera_dl.format_combine_number_resource(5, 1, "Introduction", '', "mp4")
     self.assertEqual('05_01_Introduction.mp4', rv)
Example #7
0
 def test_format_combine_resource_works_correctly(self):
     rv = coursera_dl.format_combine_number_resource(5, 4, "Moving_the_furniture", 'The_Basics', "mp4")
     self.assertEqual('05_04_Moving_the_furniture_The_Basics.mp4', rv)