Merge lp:~elopio/u1-test-utils/invalidation_test into lp:u1-test-utils

Proposed by Leo Arias
Status: Merged
Approved by: Leo Arias
Approved revision: 28
Merged at revision: 26
Proposed branch: lp:~elopio/u1-test-utils/invalidation_test
Merge into: lp:u1-test-utils
Diff against target: 34 lines (+22/-0)
2 files modified
README (+15/-0)
u1testutils/sst/sso/selftests/unit/test_sso_mail.py (+7/-0)
To merge this branch: bzr merge lp:~elopio/u1-test-utils/invalidation_test
Reviewer Review Type Date Requested Status
Corey Goldberg (community) Approve
Review via email: mp+145738@code.launchpad.net

Commit message

Added a test for the invalidation link. Added the README file.

Description of the change

Added a test for the invalidation link. Added the README file.

To post a comment you must log in.
28. By Leo Arias

Added a new line at the end of the README.

Revision history for this message
Corey Goldberg (coreygoldberg) wrote :

looks good.. README appreciated :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'README'
2--- README 1970-01-01 00:00:00 +0000
3+++ README 2013-01-30 22:21:19 +0000
4@@ -0,0 +1,15 @@
5+Getting started:
6+================
7+
8+1. Get the code:
9+
10+ bzr branch lp:u1-test-utils
11+
12+2. Set up the environment:
13+
14+ cd u1-test-utils
15+ fab bootstrap
16+
17+3. Run the tests:
18+
19+ fab test
20
21=== modified file 'u1testutils/sst/sso/selftests/unit/test_sso_mail.py'
22--- u1testutils/sst/sso/selftests/unit/test_sso_mail.py 2013-01-21 03:18:56 +0000
23+++ u1testutils/sst/sso/selftests/unit/test_sso_mail.py 2013-01-30 22:21:19 +0000
24@@ -90,3 +90,10 @@
25 self.assertEquals(
26 verification_link,
27 'https://login.ubuntu.com/confirm-account/QM9CSR/to@example.com')
28+
29+ def test_get_invalidation_link(self):
30+ invalidation_link = mail.get_invalidation_link_for_address(
31+ 'to@example.com')
32+ self.assertEquals(
33+ invalidation_link,
34+ 'https://login.ubuntu.com/invalidate-email/42FcJG/to@example.com')

Subscribers

People subscribed via source and target branches

to all changes: