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
commite82a52cacd936b66d9f6290136278af00ea1428c (patch)
treebf118c8d2bbc701c8143eb8c584cfa2c8c3d4116 /bs4/testing.py
parent3ff7bde5d320fbec4c16e7f245c345e8455ca887 (diff)
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