From 8a6e1b5e15368c9dd66b6b407b7328c2bd0360ad Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sat, 26 Feb 2011 23:39:06 -0500 Subject: The attribute list comes in as a dictionary, so stop turning it into a list for no reason. Saves code and a little time. Sort outgoing attributes so that the tests will run consistently. --- tests/test_tree.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_tree.py') diff --git a/tests/test_tree.py b/tests/test_tree.py index f9163f1..ea10367 100644 --- a/tests/test_tree.py +++ b/tests/test_tree.py @@ -741,6 +741,14 @@ class TestElementObjects(SoupTest): self.assertTrue(soup.foo.has_key('attr')) self.assertFalse(soup.foo.has_key('attr2')) + def test_attributes_come_out_in_alphabetical_order(self): + markup = '' + self.assertSoupEquals(markup, '') + + def test_multiple_values_for_the_same_attribute_are_collapsed(self): + markup = '' + self.assertSoupEquals(markup, '') + def test_string(self): # A tag that contains only a text node makes that node # available as .string. -- cgit v1.2.3