def testnewdocument_noimagecopy():
 (document, docbody, relationships, imagefiledict) = simpledoc(noimagecopy=True)
 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, imagefiledict=imagefiledict)

def testnewdocument_noimagecopy ( ) : ( document , docbody , relationships , imagefiledict ) = simpledoc ( noimagecopy = True ) 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 , imagefiledict = imagefiledict )
test that a new document can be created .