diff options
Diffstat (limited to 'bs4/testing.py')
-rw-r--r-- | bs4/testing.py | 5 |
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 |