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
streamClass =
A no-argument callable which will be used to create an XML parser which can produce a stream of elements from incremental input.
def setUp(self):
Undocumented
def _docStarted(self, root):
Undocumented
def _docEnded(self):
Undocumented
def doTest(self, xml):
Undocumented
def testHarness(self):
Undocumented
def testBasic(self):
Undocumented
def testNoRootNS(self):
Undocumented
def testNoDefaultNS(self):
Undocumented
def testChildDefaultNS(self):
Undocumented
def testEmptyChildNS(self):
Undocumented
def test_namespaceWithWhitespace(self):

Whitespace in an xmlns value is preserved in the resulting node's uri attribute.

def test_attributesWithNamespaces(self):

Attributes with namespace are parsed without Exception. (https://twistedmatrix.com/trac/ticket/9730 regression test)

def testChildPrefix(self):
Undocumented
def testUnclosedElement(self):
Undocumented
def test_namespaceReuse(self):

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.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.