twisted.words.test.test_domish.DomishStreamTestsMixin
class documentationtwisted.words.test.test_domish
(View In Hierarchy)
Known subclasses: twisted.words.test.test_domish.DomishExpatStreamTests, twisted.words.test.test_domish.DomishSuxStreamTests
Mixin defining tests for different stream implementations.
Instance Variable | streamClass | A no-argument callable which will be used to create an XML parser which can produce a stream of elements from incremental input. |
Method | setUp | Undocumented |
Method | doTest | Undocumented |
Method | testHarness | Undocumented |
Method | testBasic | Undocumented |
Method | testNoRootNS | Undocumented |
Method | testNoDefaultNS | Undocumented |
Method | testChildDefaultNS | Undocumented |
Method | testEmptyChildNS | Undocumented |
Method | test_namespaceWithWhitespace | Whitespace in an xmlns value is preserved in the resulting node's
uri attribute. |
Method | test_attributesWithNamespaces | Attributes with namespace are parsed without Exception. (https://twistedmatrix.com/trac/ticket/9730 regression test) |
Method | testChildPrefix | Undocumented |
Method | testUnclosedElement | Undocumented |
Method | test_namespaceReuse | Test that reuse of namespaces does affect an element's serialization. |
Method | _docStarted | Undocumented |
Method | _docEnded | Undocumented |
Whitespace in an xmlns value is preserved in the resulting node's
uri
attribute.
Attributes with namespace are parsed without Exception. (https://twistedmatrix.com/trac/ticket/9730 regression test)
Test that reuse of namespaces does affect an element's serialization.
When one element uses a prefix for a certain namespace, this is stored
in the localPrefixes
attribute of the element. We want to make
sure that elements created after such use, won't have this prefix end up in
their localPrefixes
attribute, too.