old_contents: from .api import API
  from .tests import Tests
  
  
  class TestTarget(object):
      KEY_API = 'api'
      KEY_TESTS = 'tests'
  
      def __init__(self, json_data):
          try:
              self._api = API(json_data[self.KEY_API])
              self._tests = Tests(json_data[self.KEY_TESTS])
          except KeyError:
              raise IncompleteTargetInformationError('Test case has incomplete information.')
  
      @property
      def api(self):
          return self._api
  
      @property
      def tests(self):
          return self._tests
  
  
  class IncompleteTargetInformationError(Exception):
      """Test types are not supported"""
      def __init__(self, value):
          self.value = value
  
      def __str__(self):
          return str(self.value)
  
new_contents: from .api import API
  from .tests import Tests
  
  
  class TestTarget(object):
      KEY_API = 'api'
      KEY_TESTS = 'tests'
  
      def __init__(self, json_data):
          try:
              self._api = API(json_data[self.KEY_API])
              self._tests = Tests(json_data[self.KEY_TESTS])
          except KeyError as e:
              raise IncompleteTargetInformationError('Test case has missing information: %s' % str(e))
  
      @property
      def api(self):
          return self._api
  
      @property
      def tests(self):
          return self._tests
  
  
  class IncompleteTargetInformationError(Exception):
      """Test types are not supported"""
      def __init__(self, value):
          self.value = value
  
      def __str__(self):
          return str(self.value)
  
subject: Clarify the missing information.