diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2014-11-04 23:20:39 +0100 | 
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2014-11-04 23:20:39 +0100 | 
| commit | 12ea2f30cfcc381eb46cc99a0a4c3d468fe732d1 (patch) | |
| tree | 4449db117df565c0ab3c302c4565dfc25fa5fe9e /test | |
| parent | 9c3e87039312e34263dbae0c9da3419e909d1001 (diff) | |
[utils] Remove unused get_meta_content function
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_utils.py | 12 | 
1 files changed, 0 insertions, 12 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 338701f4c..e59547784 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -20,7 +20,6 @@ from youtube_dl.utils import (      encodeFilename,      find_xpath_attr,      fix_xml_ampersands, -    get_meta_content,      orderedSet,      OnDemandPagedList,      InAdvancePagedList, @@ -155,17 +154,6 @@ class TestUtil(unittest.TestCase):          self.assertEqual(find_xpath_attr(doc, './/node', 'x', 'a'), doc[1])          self.assertEqual(find_xpath_attr(doc, './/node', 'y', 'c'), doc[2]) -    def test_meta_parser(self): -        testhtml = ''' -        <head> -            <meta name="description" content="foo & bar"> -            <meta content='Plato' name='author'/> -        </head> -        ''' -        get_meta = lambda name: get_meta_content(name, testhtml) -        self.assertEqual(get_meta('description'), 'foo & bar') -        self.assertEqual(get_meta('author'), 'Plato') -      def test_xpath_with_ns(self):          testxml = '''<root xmlns:media="http://example.com/">              <media:song>  | 
