#NEWLINE# def test_create_no_xml( self ) : #NEWLINE# #INDENT# 'Default XML configuration is used if not provided.' #NEWLINE# expected = ( '<network><forward mode="nat" /><name>foo</name><uuid>foo</uuid>' + '<bridge name="virbr-foo" /></network>' ) #NEWLINE# hypervisor = mock . Mock ( ) #NEWLINE# hypervisor . listNetworks . return_value = [ ] #NEWLINE# network . create ( hypervisor , 'foo' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# results = hypervisor . networkCreateXML . call_args_list [ 0 ] [ 0 ] [ 0 ] #NEWLINE# self . assertEqual ( hypervisor , expected , compare ( results , expected ) )