summaryrefslogtreecommitdiff
path: root/bs4/testing.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-04-26 10:08:45 -0400
committerLeonard Richardson <leonard.richardson@canonical.com>2012-04-26 10:08:45 -0400
commit87252c8414151c014b51274eab4757dadfb88479 (patch)
tree29bbcebeb12c9f0f15c9b247a6dbfd147dd5eb42 /bs4/testing.py
parent4aed94dd903dec3943c71bdbbdfdebf5f58ed9d7 (diff)
downloadbeautifulsoup4-87252c8414151c014b51274eab4757dadfb88479.tar.gz
The test suite now passes when lxml is not installed, whether or not html5lib is installed. [bug=987004]
Diffstat (limited to 'bs4/testing.py')
-rw-r--r--bs4/testing.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bs4/testing.py b/bs4/testing.py
index 94c87c9..b004c18 100644
--- a/bs4/testing.py
+++ b/bs4/testing.py
@@ -238,6 +238,11 @@ class HTMLTreeBuilderSmokeTest(object):
self.assertEqual(
'http://www.w3.org/2000/svg', soup.html['xmlns:svg'])
+ def test_multivalued_attribute_value_becomes_list(self):
+ markup = b'<a class="foo bar">'
+ soup = self.soup(markup)
+ self.assertEqual(['foo', 'bar'], soup.a['class'])
+
#
# Generally speaking, tests below this point are more tests of
# Beautiful Soup than tests of the tree builders. But parsers are