コード例 #1
0
ファイル: test_utils.py プロジェクト: Code37/coursera-dl
def test_format_combine_resource_works_correctly_without_title():
    rv = format_combine_number_resource(5, 1, "Introduction", '', "mp4")
    assert '05_01_Introduction.mp4' == rv
コード例 #2
0
def test_format_combine_resource_works_correctly_without_title():
    rv = format_combine_number_resource(5, 1, "Introduction", '', "mp4")
    assert '05_01_Introduction.mp4' == rv
コード例 #3
0
ファイル: test_utils.py プロジェクト: Code37/coursera-dl
def test_format_combine_resource_works_correctly():
    rv = format_combine_number_resource(5, 4, "Moving_the_furniture", 'The_Basics', "mp4")
    assert '05_04_Moving_the_furniture_The_Basics.mp4' == rv
コード例 #4
0
def test_format_combine_resource_works_correctly():
    rv = format_combine_number_resource(5, 4, "Moving_the_furniture", 'The_Basics', "mp4")
    assert '05_04_Moving_the_furniture_The_Basics.mp4' == rv