old_contents: import responses
  from conftest import Mock
  
  
  class TestIP:
      @responses.activate
      def test_get_ip(self, manager):
          data = Mock.mock_get('ip_address/10.1.0.101')
          ip_addr = manager.get_ip('10.1.0.101')
  
          assert type(ip_addr).__name__ == 'IPAddress'
          assert ip_addr.address == '10.1.0.101'
          assert ip_addr.ptr_record == 'a.ptr.record'
  
      @responses.activate
      def test_get_ips(self, manager):
          data = Mock.mock_get('ip_address')
          ip_addrs = manager.get_ips()
  
          for ip_addr in ip_addrs:
              assert type(ip_addr).__name__ == 'IPAddress'
  
      @responses.activate
      def test_modify_ip_oop(self, manager):
          # get ip
          data = Mock.mock_get('ip_address/10.1.0.101')
          ip_addr = manager.get_ip('10.1.0.101')
  
          # put ip
          data = Mock.mock_put('ip_address/10.1.0.101')
          ip_addr.ptr_record = 'my.ptr.record'
          ip_addr.save()
  
          assert ip_addr.ptr_record == 'my.ptr.record'
  
      @responses.activate
      def test_modify_ip(self, manager):
          data = Mock.mock_put('ip_address/10.1.0.101')
          ip_addr = manager.modify_ip('10.1.0.101', ptr_record='my.ptr.record')
  
          assert ip_addr.ptr_record == 'my.ptr.record'
  
      @responses.activate
      def test_modify_ip(self, manager):
          data = Mock.mock_put('ip_address/10.1.0.101')
          ip_addr = manager.modify_ip('10.1.0.101', ptr_record='my.ptr.record')
          assert ip_addr.ptr_record == 'my.ptr.record'
  
      @responses.activate
      def test_ip_delete(self, manager):
          Mock.mock_delete('ip_address/10.1.0.101')
          res = manager.release_ip('10.1.0.101')
          assert res == {}
  
new_contents: import responses
  from conftest import Mock
  
  
  class TestIP:
      @responses.activate
      def test_get_ip(self, manager):
          data = Mock.mock_get('ip_address/10.1.0.101')
          ip_addr = manager.get_ip('10.1.0.101')
  
          assert type(ip_addr).__name__ == 'IPAddress'
          assert ip_addr.address == '10.1.0.101'
          assert ip_addr.ptr_record == 'a.ptr.record'
  
      @responses.activate
      def test_get_ips(self, manager):
          data = Mock.mock_get('ip_address')
          ip_addrs = manager.get_ips()
  
          for ip_addr in ip_addrs:
              assert type(ip_addr).__name__ == 'IPAddress'
  
      @responses.activate
      def test_modify_ip_oop(self, manager):
          # get ip
          data = Mock.mock_get('ip_address/10.1.0.101')
          ip_addr = manager.get_ip('10.1.0.101')
  
          # put ip
          data = Mock.mock_put('ip_address/10.1.0.101')
          ip_addr.ptr_record = 'my.ptr.record'
          ip_addr.save()
  
          assert ip_addr.ptr_record == 'my.ptr.record'
  
      @responses.activate
      def test_modify_ip(self, manager):
          data = Mock.mock_put('ip_address/10.1.0.101')
          ip_addr = manager.modify_ip('10.1.0.101', ptr_record='my.ptr.record')
          assert ip_addr.ptr_record == 'my.ptr.record'
  
      @responses.activate
      def test_ip_delete(self, manager):
          Mock.mock_delete('ip_address/10.1.0.101')
          res = manager.release_ip('10.1.0.101')
          assert res == {}
  
subject: Remove duplicate test_modify_ip