From 0085e36491aa14f80c8979ee25c1ad0039bc3f00 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Sun, 26 Feb 2017 18:52:15 +0200 Subject: [PATCH] Extend the 'test_parse_to_audio_requirement_bug' test case --- tests/test_parsers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_parsers.py b/tests/test_parsers.py index 960d336..413a9af 100644 --- a/tests/test_parsers.py +++ b/tests/test_parsers.py @@ -100,6 +100,12 @@ class TestParse(unittest.TestCase): self.assertItemsEqual(options_parser.parse(options_dict), expected_cmd_list) + # Setting 'to_audio' to True should return the same results + # since the '-x' flag is already set on audio extraction + options_dict["to_audio"] = True + + self.assertItemsEqual(options_parser.parse(options_dict), expected_cmd_list) + def main(): unittest.main()