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
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
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
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
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)
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)
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)