summaryrefslogtreecommitdiff
path: root/service/test/unit/resources/test_login_resource.py
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2016-05-22 12:12:08 +0200
committerNavaL <mnandri@thoughtworks.com>2016-05-22 12:12:08 +0200
commitee5b5198e89f23cd49d41dc58fb93443b5d8c9e1 (patch)
treea8d6075ac33cfa091a883c369bd2fc9508c65f1a /service/test/unit/resources/test_login_resource.py
parentdb0fd0a5a4d9961618074c2b97527f542878f99f (diff)
accomodates the case where the email address is the data sent with the event
- now username and user_id are mapped when the user logs in - Issue #686
Diffstat (limited to 'service/test/unit/resources/test_login_resource.py')
-rw-r--r--service/test/unit/resources/test_login_resource.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/test/unit/resources/test_login_resource.py b/service/test/unit/resources/test_login_resource.py
index 4076946a..09bc79bf 100644
--- a/service/test/unit/resources/test_login_resource.py
+++ b/service/test/unit/resources/test_login_resource.py
@@ -180,6 +180,7 @@ class TestLoginPOST(unittest.TestCase):
def assert_login_setup_service_for_user(_):
verify(self.portal).login(ANY(), None, IResource)
verify(self.services_factory).create_services_from(self.leap_session)
+ verify(self.services_factory).map_email('ayoyo', 'some_user_uuid')
interstitial_js_in_template = '<script src="startup-assets/Interstitial.js"></script>'
self.assertIn(interstitial_js_in_template, self.request.written[0])
self.assertTrue(self.resource.is_logged_in(self.request))