'Tests adding a child node with its own children'

def test_add_node_with_children(self):

    root = netapp_api.NaElement('root')
    self.mock_object(netapp_api.NaElement, 'create_node_with_children', return_value=zapi_fakes.FAKE_INVOKE_DATA)
    mock_invoke = self.mock_object(root, 'add_child_elem')
    root.add_node_with_children('options')
    mock_invoke.assert_called_with(zapi_fakes.FAKE_INVOKE_DATA)
