def _check_invalid_metafeature_exception_string(self, exception_str, expected_str, invalid_metafeatures):
self.assertTrue(<EOL>exception_str.startswith(expected_str),<EOL>self.invalid_metafeature_message_start_fail_message<EOL>)<EOL>for invalid_mf in invalid_metafeatures:<EOL><INDENT>self.assertTrue(<EOL>invalid_mf in exception_str,<EOL>self.invalid_metafeature_message_contains_fail_message<EOL>)<EOL><DEDENT>
Checks if the exception message starts with the right string, and contains all of the invalid metafeatures expected.