Exemple #1
0
 def test_format_section_can_split_extensions_off(self):
     self.assertEqual(
         core.format_command(["foo", "{}", "{.}.mp3"], argument="2.mp4"),
         ["foo", "2.mp4", "2.mp3"],
     )
Exemple #2
0
 def test_if_there_are_no_format_sections_the_argument_is_appended(self):
     self.assertEqual(
         core.format_command(["hello"], argument="1"), ["hello", "1"],
     )
Exemple #3
0
 def test_format_sections_are_replaced_with_the_argument(self):
     self.assertEqual(
         core.format_command(["hello", "{}.bar", "world"], argument="1"),
         ["hello", "1.bar", "world"],
     )