'When SAML is not enabled, the metadata view should return 404'

def test_saml_disabled(self):

    self.enable_saml(enabled=False)
    response = self.client.get(self.METADATA_URL)
    self.assertEqual(response.status_code, 404)
