Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)