diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_InfoExtractor.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/test/test_InfoExtractor.py b/test/test_InfoExtractor.py index 75fa0bbb7..f0aa8466b 100644 --- a/test/test_InfoExtractor.py +++ b/test/test_InfoExtractor.py @@ -61,6 +61,7 @@ class TestInfoExtractor(unittest.TestCase):              <meta content='Foo' property=og:foobar>              <meta name="og:test1" content='foo > < bar'/>              <meta name="og:test2" content="foo >//< bar"/> +            <meta property=og-test3 content='Ill-formatted opengraph'/>              '''          self.assertEqual(ie._og_search_title(html), 'Foo')          self.assertEqual(ie._og_search_description(html), 'Some video\'s description ') @@ -69,6 +70,7 @@ 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('test3', html), 'Ill-formatted opengraph')          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) | 
