Files
edx-platform/common/djangoapps/third_party_auth/tests/test_pipeline.py
2018-08-20 12:54:22 -04:00

17 lines
636 B
Python

"""Unit tests for third_party_auth/pipeline.py."""
import unittest
from third_party_auth import pipeline
from third_party_auth.tests import testutil
@unittest.skipUnless(testutil.AUTH_FEATURE_ENABLED, testutil.AUTH_FEATURES_KEY + ' not enabled')
class ProviderUserStateTestCase(testutil.TestCase):
"""Tests ProviderUserState behavior."""
def test_get_unlink_form_name(self):
google_provider = self.configure_google_provider(enabled=True)
state = pipeline.ProviderUserState(google_provider, object(), None)
self.assertEqual(google_provider.provider_id + '_unlink_form', state.get_unlink_form_name())