def validate_record_type(self, cls):
if self.record_types and cls not in self.record_types:<EOL><INDENT>raise ValueError('<STR_LIT>' + cls + '<STR_LIT:">')<EOL><DEDENT>
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"