diff options
author | Leonard Richardson <leonardr@segfault.org> | 2017-05-06 14:43:41 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2017-05-06 14:43:41 -0400 |
commit | 9f811070c46bfca9868b0365b8c209bd2ca17924 (patch) | |
tree | f2235982c223a8ea2c472f0e5e23127c968513c7 /bs4/tests/test_tree.py | |
parent | 13ec3c3f3010820be225094cc06862cc4b3b2944 (diff) |
Renamed convenience method to get_attribute_text.
Diffstat (limited to 'bs4/tests/test_tree.py')
-rw-r--r-- | bs4/tests/test_tree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/tests/test_tree.py b/bs4/tests/test_tree.py index f57255d..90a6d25 100644 --- a/bs4/tests/test_tree.py +++ b/bs4/tests/test_tree.py @@ -1288,7 +1288,7 @@ class TestCDAtaListAttributes(SoupTest): def test_attribute_values_joined_into_string_through_string_attr(self): soup = self.soup("<a class='foo\tbar'>") - self.assertEqual(b'foo bar', soup.a.string_attr('class')) + self.assertEqual('foo bar', soup.a.get_attribute_text('class')) def test_accept_charset(self): soup = self.soup('<form accept-charset="ISO-8859-1 UTF-8">') |