aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorZenon Mousmoulas <zmousm@users.noreply.github.com>2022-01-09 20:14:56 +0200
committerGitHub <noreply@github.com>2022-01-09 23:44:56 +0530
commit0254f1627487c137abd201dea230247de6cb7f87 (patch)
tree7bc4fa474d192290a657944d377d067abbfe933b /test/test_utils.py
parenta70b71e85ad61c5f7c85ef920d72f949fb767d53 (diff)
downloadhypervideo-pre-0254f1627487c137abd201dea230247de6cb7f87.tar.lz
hypervideo-pre-0254f1627487c137abd201dea230247de6cb7f87.tar.xz
hypervideo-pre-0254f1627487c137abd201dea230247de6cb7f87.zip
[utils] Improve `get_elements_text_and_html_by_attribute` regex (#2280)
Authored by: zmousm, pukkandan
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index c3ec798dc..2c8f2c03e 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -1659,10 +1659,10 @@ Line 1
html = self.GET_ELEMENTS_BY_CLASS_TEST_STRING
self.assertEqual(
- get_elements_text_and_html_by_attribute('class', 'foo bar', html),
+ list(get_elements_text_and_html_by_attribute('class', 'foo bar', html)),
list(zip(['nice', 'also nice'], self.GET_ELEMENTS_BY_CLASS_RES)))
- self.assertEqual(get_elements_text_and_html_by_attribute('class', 'foo', html), [])
- self.assertEqual(get_elements_text_and_html_by_attribute('class', 'no-such-foo', html), [])
+ 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)), [])
GET_ELEMENT_BY_TAG_TEST_STRING = '''
random text lorem ipsum</p>