diff options
author | Jesús <heckyel@hyperbola.info> | 2021-12-20 11:53:26 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-12-20 11:53:26 -0500 |
commit | 65ee789d3062a5321faf0092fc2cf8ec498fc4a1 (patch) | |
tree | 72ef3e3de40dac0e03517d28eb0a2cea17f86ba4 /test/test_YoutubeDL.py | |
parent | 1abb4c89c62a9fec2e8a65c3d76d4ac0e8dd4c43 (diff) | |
parent | 0fcba15d57430e8ebfd2091463e12dfa9882cbef (diff) | |
download | hypervideo-pre-65ee789d3062a5321faf0092fc2cf8ec498fc4a1.tar.lz hypervideo-pre-65ee789d3062a5321faf0092fc2cf8ec498fc4a1.tar.xz hypervideo-pre-65ee789d3062a5321faf0092fc2cf8ec498fc4a1.zip |
updated from upstream | 20/12/2021 at 11:53
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r-- | test/test_YoutubeDL.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index 63ef50e1a..6c2530046 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -836,6 +836,11 @@ class TestYoutubeDL(unittest.TestCase): test('%(title3)s', ('foo/bar\\test', 'foo_bar_test')) test('folder/%(title3)s', ('folder/foo/bar\\test', 'folder%sfoo_bar_test' % os.path.sep)) + # Replacement + test('%(id&foo)s.bar', 'foo.bar') + test('%(title&foo)s.bar', 'NA.bar') + test('%(title&foo|baz)s.bar', 'baz.bar') + def test_format_note(self): ydl = YoutubeDL() self.assertEqual(ydl._format_note({}), '') |