'Test that some sensitive values can be configured via Django settings'

def test_secure_configuration(self):

    self.configure_google_provider(enabled=True, secret='')
    enabled_providers = provider.Registry.enabled()
    self.assertEqual(len(enabled_providers), 1)
    self.assertEqual(enabled_providers[0].name, 'Google')
    self.assertEqual(enabled_providers[0].get_setting('SECRET'), '')
    with self.settings(SOCIAL_AUTH_OAUTH_SECRETS={'google-oauth2': 'secret42'}):
        self.assertEqual(enabled_providers[0].get_setting('SECRET'), 'secret42')
