Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_minidom Namespace Reference

Classes

class  MinidomTest

Functions

def create_doc_without_doctype
def create_nonempty_doctype
def create_doc_with_doctype
def test_main

Variables

tuple tstfile = findfile("test.xml", subdir="xmltestdata")

Function Documentation

Definition at line 40 of file test_minidom.py.

00040 
00041 def create_doc_with_doctype():
00042     doctype = create_nonempty_doctype()
00043     doc = create_doc_without_doctype(doctype)
00044     doctype.entities.item(0).ownerDocument = doc
00045     doctype.notations.item(0).ownerDocument = doc
00046     return doc

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 21 of file test_minidom.py.

00021 
00022 def create_doc_without_doctype(doctype=None):
00023     return getDOMImplementation().createDocument(None, "doc", doctype)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 24 of file test_minidom.py.

00024 
00025 def create_nonempty_doctype():
00026     doctype = getDOMImplementation().createDocumentType("doc", None, None)
00027     doctype.entities._seq = []
00028     doctype.notations._seq = []
00029     notation = xml.dom.minidom.Notation("my-notation", None,
00030                                         "http://xml.python.org/notations/my")
00031     doctype.notations._seq.append(notation)
00032     entity = xml.dom.minidom.Entity("my-entity", None,
00033                                     "http://xml.python.org/entities/my",
00034                                     "my-notation")
00035     entity.version = "1.0"
00036     entity.encoding = "utf-8"
00037     entity.actualEncoding = "us-ascii"
00038     doctype.entities._seq.append(entity)
00039     return doctype

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1480 of file test_minidom.py.

01480 
01481 def test_main():
01482     run_unittest(MinidomTest)

Here is the call graph for this function:


Variable Documentation

tuple test.test_minidom.tstfile = findfile("test.xml", subdir="xmltestdata")

Definition at line 15 of file test_minidom.py.