From 8f55704928ac16599a62678fc1c3a83d83f43a21 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 21 Oct 2010 16:21:28 -0400 Subject: Fixed mixed text and elements bug in tostring. XML of the form foo bar baz was outputted as foo bar baz baz. Includes unit test. --- tests/test_tostring.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/test_tostring.py b/tests/test_tostring.py index 45f405ce..3e9df524 100644 --- a/tests/test_tostring.py +++ b/tests/test_tostring.py @@ -73,6 +73,16 @@ class TestToString(SleekTest): message="The xmlns parameter was not used properly.", xmlns='foo') + def testTailContent(self): + """ + Test that elements of the form foo bar baz only + include " baz" once. + """ + self.tryTostring( + original='foo bar baz', + message='Element tail content is incorrect.') + + def testStanzaNs(self): """ Test using the stanza_ns tostring parameter, which will prevent -- cgit v1.2.3