'Tests adding a child node with its own children'

def test_create_node_with_children(self):

    root = netapp_api.NaElement('root')
    self.mock_object(root, 'add_new_child', return_value='abc')
    result_xml = str(root.create_node_with_children('options', test1=zapi_fakes.FAKE_XML_STR, test2=zapi_fakes.FAKE_XML_STR))
    self.assertTrue(result_xml.startswith('<options>'), result_xml)
    self.assertTrue(('<test1>abc</test1>' in result_xml), result_xml)
    self.assertTrue(('<test2>abc</test2>' in result_xml), result_xml)
    self.assertTrue(result_xml.rstrip().endswith('</options>'), result_xml)
