'Test to ensure that Registry.get_enabled_by_backend_name doesn\'t return OAuth2 providers with incorrect
backend_names.'

def test_oauth2_enabled_only_for_supplied_backend(self):

    facebook_provider = self.configure_facebook_provider(enabled=True)
    self.configure_google_provider(enabled=True)
    self.assertNotIn(facebook_provider, provider.Registry.get_enabled_by_backend_name('google-oauth2'))
