diff options
author | Sergey M․ <[email protected]> | 2016-08-02 22:55:14 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2016-08-02 22:55:14 +0700 |
commit | b070564efb190e1740c4e9d5fdde25cc436c72c3 (patch) | |
tree | ef82754ee65b208b9264f2e74de2cc5913806d33 /test/test_InfoExtractor.py | |
parent | ce28252c485cea5cdc2b0f5fd9f1c8d50c26c7a2 (diff) | |
download | youtube-dl-b070564efb190e1740c4e9d5fdde25cc436c72c3.tar.gz youtube-dl-b070564efb190e1740c4e9d5fdde25cc436c72c3.zip |
[extractor/common] Support multiple properties in _og_search_property
Diffstat (limited to 'test/test_InfoExtractor.py')
-rw-r--r-- | test/test_InfoExtractor.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_InfoExtractor.py b/test/test_InfoExtractor.py index 88e8ff904..a98305c74 100644 --- a/test/test_InfoExtractor.py +++ b/test/test_InfoExtractor.py @@ -48,6 +48,9 @@ class TestInfoExtractor(unittest.TestCase): self.assertEqual(ie._og_search_property('foobar', html), 'Foo') self.assertEqual(ie._og_search_property('test1', html), 'foo > < bar') self.assertEqual(ie._og_search_property('test2', html), 'foo >//< bar') + self.assertEqual(ie._og_search_property(('test0', 'test1'), html), 'foo > < bar') + self.assertRaises(RegexNotFoundError, ie._og_search_property, 'test0', html, None, fatal=True) + self.assertRaises(RegexNotFoundError, ie._og_search_property, ('test0', 'test00'), html, None, fatal=True) def test_html_search_meta(self): ie = self.ie |