summaryrefslogtreecommitdiffhomepage
path: root/test/test_InfoExtractor.py
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2016-08-02 22:55:14 +0700
committerSergey M․ <[email protected]>2016-08-02 22:55:14 +0700
commitb070564efb190e1740c4e9d5fdde25cc436c72c3 (patch)
treeef82754ee65b208b9264f2e74de2cc5913806d33 /test/test_InfoExtractor.py
parentce28252c485cea5cdc2b0f5fd9f1c8d50c26c7a2 (diff)
downloadyoutube-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.py3
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