def generateAndCheckMetadata(self, settings):
if not isinstance(settings, OneLogin_Saml2_Settings):<EOL><INDENT>settings = OneLogin_Saml2_Settings(settings)<EOL><DEDENT>metadata = compat.to_string(settings.get_sp_metadata())<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>self.assertIn('<STR_LIT>', metadata)<EOL>
Helper method: Given some settings, generate metadata and validate it