'Tests to ensure that only providers that we can use to log in are presented
for rendering in the UI.'

def test_providers_displayed_for_login(self):

    hidden_provider = self.configure_google_provider(visible=False, enabled=True)
    normal_provider = self.configure_facebook_provider(visible=True, enabled=True)
    implicitly_hidden_provider = self.configure_linkedin_provider(enabled=True)
    disabled_provider = self.configure_twitter_provider(visible=True, enabled=False)
    no_log_in_provider = self.configure_lti_provider()
    provider_ids = [idp.provider_id for idp in provider.Registry.displayed_for_login()]
    self.assertNotIn(hidden_provider.provider_id, provider_ids)
    self.assertNotIn(implicitly_hidden_provider.provider_id, provider_ids)
    self.assertNotIn(disabled_provider.provider_id, provider_ids)
    self.assertNotIn(no_log_in_provider.provider_id, provider_ids)
    self.assertIn(normal_provider.provider_id, provider_ids)
