diff options
Diffstat (limited to 'tests/test_tostring.py')
-rw-r--r-- | tests/test_tostring.py | 10 |
1 files changed, 10 insertions, 0 deletions
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 <a>foo <b>bar</b> baz</a> only + include " baz" once. + """ + self.tryTostring( + original='<a>foo <b>bar</b> baz</a>', + message='Element tail content is incorrect.') + + def testStanzaNs(self): """ Test using the stanza_ns tostring parameter, which will prevent |