summaryrefslogtreecommitdiff
path: root/bs4/tests
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2017-05-06 21:38:56 -0400
committerLeonard Richardson <leonardr@segfault.org>2017-05-06 21:38:56 -0400
commita860302f892294d43d509d4b47c07623f44be947 (patch)
tree48de7402726a87a113c3ec42e887392c5dcd786a /bs4/tests
parent797c844c569f0f32ee243642bb6a286d12a004a8 (diff)
Replace get_attribute_text with get_attribute_list.
Diffstat (limited to 'bs4/tests')
-rw-r--r--bs4/tests/test_tree.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bs4/tests/test_tree.py b/bs4/tests/test_tree.py
index 90a6d25..c0e7c40 100644
--- a/bs4/tests/test_tree.py
+++ b/bs4/tests/test_tree.py
@@ -1286,9 +1286,9 @@ class TestCDAtaListAttributes(SoupTest):
soup = self.soup("<a class='foo\tbar'>")
self.assertEqual(b'<a class="foo bar"></a>', soup.a.encode())
- def test_attribute_values_joined_into_string_through_string_attr(self):
- soup = self.soup("<a class='foo\tbar'>")
- self.assertEqual('foo bar', soup.a.get_attribute_text('class'))
+ def test_get_attribute_list(self):
+ soup = self.soup("<a id='abc def'>")
+ self.assertEqual(['abc def'], soup.a.get_attribute_list('id'))
def test_accept_charset(self):
soup = self.soup('<form accept-charset="ISO-8859-1 UTF-8">')