'Tests adding a child node with its own children'

def test_add_new_child(self):

    root = netapp_api.NaElement('root')
    self.mock_object(netapp_api.NaElement, '_convert_entity_refs', return_value=zapi_fakes.FAKE_INVOKE_DATA)
    root.add_new_child('options', zapi_fakes.FAKE_INVOKE_DATA)
    self.assertEqual(zapi_fakes.FAKE_XML2, root.to_string())
