code: def validate_record_type(self, cls):
          
          if self.record_types and cls not in self.record_types:
              raise ValueError('Unsupported record type "' + cls + '"')
docs: Validate given record is acceptable.
  
          >>> s = teststore()
          >>> s.validate_record_type('tstoretest')
          >>> s.validate_record_type('bad')
          Traceback (most recent call last):
              ...
          ValueError: Unsupported record type "bad"