def testnewdocument():
 (document, docbody, relationships) = simpledoc()
 coreprops = coreproperties('Python docx testnewdocument', 'A short example of making docx from Python', 'Alan Brooks', ['python', 'Office Open XML', 'Word'])
 savedocx(document, coreprops, appproperties(), contenttypes(), websettings(), wordrelationships(relationships), TEST_FILE)

def testnewdocument ( ) : ( document , docbody , relationships ) = simpledoc ( ) coreprops = coreproperties ( 'Python docx testnewdocument' , 'A short example of making docx from Python' , 'Alan Brooks' , [ 'python' , 'Office Open XML' , 'Word' ] ) savedocx ( document , coreprops , appproperties ( ) , contenttypes ( ) , websettings ( ) , wordrelationships ( relationships ) , TEST_FILE )
test that a new document can be created .