aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorMatthew <coletdjnz@protonmail.com>2022-10-09 18:55:26 +1300
committerGitHub <noreply@github.com>2022-10-09 05:55:26 +0000
commit4c9a1a3ba56c2906f9ef8d768de7f8e5a2361144 (patch)
tree257a60ee52b2a803875118fdbd2ca8288a5a5585 /test/test_utils.py
parent1d55ebabc93b8e422a0126fc307f2a8e50fa5a97 (diff)
downloadhypervideo-pre-4c9a1a3ba56c2906f9ef8d768de7f8e5a2361144.tar.lz
hypervideo-pre-4c9a1a3ba56c2906f9ef8d768de7f8e5a2361144.tar.xz
hypervideo-pre-4c9a1a3ba56c2906f9ef8d768de7f8e5a2361144.zip
[extractor/wordpress:mb.miniAudioPlayer] Add embed extractor (#5087)
Closes https://github.com/yt-dlp/yt-dlp/issues/4994 Authored by: coletdjnz
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 90085a9c0..df23f1f47 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -1679,6 +1679,9 @@ Line 1
self.assertEqual(list(get_elements_text_and_html_by_attribute('class', 'foo', html)), [])
self.assertEqual(list(get_elements_text_and_html_by_attribute('class', 'no-such-foo', html)), [])
+ self.assertEqual(list(get_elements_text_and_html_by_attribute(
+ 'class', 'foo', '<a class="foo">nice</a><span class="foo">nice</span>', tag='a')), [('nice', '<a class="foo">nice</a>')])
+
GET_ELEMENT_BY_TAG_TEST_STRING = '''
random text lorem ipsum</p>
<div>