'Validate that the contact info in the metadata has the expected values'

def check_metadata_contacts(self, xml, tech_name, tech_email, support_name, support_email):

    technical_node = xml.find(".//{}[@contactType='technical']".format(etree.QName(SAML_XML_NS, 'ContactPerson')))
    self.assertIsNotNone(technical_node)
    tech_name_node = technical_node.find(etree.QName(SAML_XML_NS, 'GivenName'))
    self.assertEqual(tech_name_node.text, tech_name)
    tech_email_node = technical_node.find(etree.QName(SAML_XML_NS, 'EmailAddress'))
    self.assertEqual(tech_email_node.text, tech_email)
    support_node = xml.find(".//{}[@contactType='support']".format(etree.QName(SAML_XML_NS, 'ContactPerson')))
    self.assertIsNotNone(support_node)
    support_name_node = support_node.find(etree.QName(SAML_XML_NS, 'GivenName'))
    self.assertEqual(support_name_node.text, support_name)
    support_email_node = support_node.find(etree.QName(SAML_XML_NS, 'EmailAddress'))
    self.assertEqual(support_email_node.text, support_email)
