summaryrefslogtreecommitdiff
path: root/bs4/tests/test_soup.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2019-07-07 16:24:41 -0400
committerLeonard Richardson <leonardr@segfault.org>2019-07-07 16:24:41 -0400
commitfd040bfacc6caa2d0b92edbeed5f32582ad55d83 (patch)
tree8a30058bb04d472cc457dec11b731a579b3c6201 /bs4/tests/test_soup.py
parent0159c0a4135f267aed0586ba9d829d0a3da25da8 (diff)
Renamed the cdata_list_attributes argument to multi_valued_attributes since it's facing the end-user and that's a more easily understandable name.
Diffstat (limited to 'bs4/tests/test_soup.py')
-rw-r--r--bs4/tests/test_soup.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bs4/tests/test_soup.py b/bs4/tests/test_soup.py
index 213255d..a2242da 100644
--- a/bs4/tests/test_soup.py
+++ b/bs4/tests/test_soup.py
@@ -102,16 +102,16 @@ class TestConstructor(SoupTest):
self.assertEqual(" an id ", a['id'])
self.assertEqual(["a", "class"], a['class'])
- # TreeBuilder takes an argument called 'cdata_list_attributes' which lets
+ # TreeBuilder takes an argument called 'mutli_valued_attributes' which lets
# you customize or disable this. As always, you can customize the TreeBuilder
# by passing in a keyword argument to the BeautifulSoup constructor.
- soup = self.soup(markup, builder=default_builder, cdata_list_attributes=None)
+ soup = self.soup(markup, builder=default_builder, multi_valued_attributes=None)
self.assertEqual(" a class ", soup.a['class'])
- # Here are two ways of saying that `id` is a CDATA list
- # attribute and 'class' is not.
+ # Here are two ways of saying that `id` is a multi-valued
+ # attribute in this context, but 'class' is not.
for switcheroo in ({'*': 'id'}, {'a': 'id'}):
- soup = self.soup(markup, builder=None, cdata_list_attributes=switcheroo)
+ soup = self.soup(markup, builder=None, multi_valued_attributes=switcheroo)
a = soup.a
self.assertEqual(["an", "id"], a['id'])
self.assertEqual(" a class ", a['class'])