@@ -0,0 +1,2484 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0A# This work was created by participants in the DataONE project, and is%0A# jointly copyrighted by participating institutions in DataONE. For%0A# more information on DataONE, see our web site at http://dataone.org.%0A#%0A#   Copyright 2009-2016 DataONE%0A#%0A# Licensed under the Apache License, Version 2.0 (the %22License%22);%0A# you may not use this file except in compliance with the License.%0A# You may obtain a copy of the License at%0A#%0A#   http://www.apache.org/licenses/LICENSE-2.0%0A#%0A# Unless required by applicable law or agreed to in writing, software%0A# distributed under the License is distributed on an %22AS IS%22 BASIS,%0A# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A# See the License for the specific language governing permissions and%0A# limitations under the License.%0A%0Aimport unittest%0A%0Aimport d1_common.util%0A%0Aimport d1_client.cnclient_2_0%0Aimport shared_settings%0A%0Aimport d1_test.mock_api.catch_all%0A%0A%0Aclass TestCNClient_2_0(unittest.TestCase):%0A  @classmethod%0A  def setUpClass(cls):%0A    d1_common.util.log_setup(is_debug=True)%0A%0A  def setUp(self):%0A    self.client = d1_client.cnclient_2_0.CoordinatingNodeClient_2_0(%0A      shared_settings.CN_RESPONSES_URL%0A    )%0A%0A  def test_0010(self):%0A    %22%22%22CoordinatingNodeClient_2_0(): Instantiate%22%22%22%0A    self.assertIsInstance(%0A      self.client, d1_client.cnclient_2_0.CoordinatingNodeClient_2_0%0A    )%0A%0A  @d1_test.mock_api.catch_all.activate%0A  def test_0020(self):%0A    d1_test.mock_api.catch_all.add_callback(shared_settings.CN_RESPONSES_URL)%0A    received_echo_dict = self.client.deleteObject('valid_pid')%0A    expected_echo_dict = %7B%0A      'request': %7B%0A        u'pyxb_namespace': u'http://ns.dataone.org/service/types/v2.0',%0A        u'param_list': %5Bu'valid_pid'%5D,%0A        u'body_base64': u'',%0A        u'header_dict': %7B%0A          u'Content-Length': u'0',%0A          u'Accept-Encoding': u'gzip, deflate',%0A          u'Charset': u'utf-8',%0A          u'Accept': u'*/*',%0A          u'User-Agent': u'pyd1/2.1.0rc2 +http://dataone.org/',%0A          u'Connection': u'keep-alive'%0A        %7D,%0A        u'version_tag': u'v2',%0A        u'query_dict': %7B%7D,%0A        u'endpoint_str': u'object'%0A      %7D,%0A      'wrapper': %7B%0A        'class_name': 'CoordinatingNodeClient_2_0',%0A        'expected_type': 'Identifier',%0A        'vendor_specific_dict': None,%0A        'received_303_redirect': False%0A      %7D%0A    %7D%0A    d1_test.mock_api.catch_all.assert_expected_echo(%0A      received_echo_dict, expected_echo_dict%0A    )%0A

Add tests for delete()