def testmakeelement():
 testelement = makeelement('testname', attributes={'testattribute': 'testvalue'}, tagtext='testtagtext')
 assert (testelement.tag == '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}testname')
 assert (testelement.attrib == {'{http://schemas.openxmlformats.org/wordprocessingml/2006/main}testattribute': 'testvalue'})
 assert (testelement.text == 'testtagtext')

def testmakeelement ( ) : testelement = makeelement ( 'testname' , attributes = { 'testattribute' : 'testvalue' } , tagtext = 'testtagtext' ) assert ( testelement . tag == '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}testname' ) assert ( testelement . attrib == { '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}testattribute' : 'testvalue' } ) assert ( testelement . text == 'testtagtext' )
ensure custom elements get created .