~bjornt/launchpad/architect-vision

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/browser/tests/test_logintoken.py

  • Committer: Bjorn Tillenius
  • Date: 2010-05-12 12:52:09 UTC
  • mfrom: (10599.1.251 launchpad)
  • Revision ID: bjorn@canonical.com-20100512125209-pip7jav1a7xq52d8
Merge RF.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
from zope.component import getUtility
7
7
 
8
8
from canonical.launchpad.browser.logintoken import (
9
 
    ClaimTeamView, ResetPasswordView, ValidateEmailView, ValidateGPGKeyView)
 
9
    ClaimTeamView, ValidateEmailView, ValidateGPGKeyView)
10
10
from canonical.launchpad.ftests import LaunchpadFormHarness
11
11
from canonical.launchpad.interfaces.authtoken import LoginTokenType
12
12
from canonical.launchpad.interfaces.logintoken import ILoginTokenSet
29
29
        self.email = self.person.preferredemail.email
30
30
        self.expected_next_url = 'http://127.0.0.1/~test-user'
31
31
 
32
 
    def test_ResetPasswordView(self):
33
 
        token = getUtility(ILoginTokenSet).new(
34
 
            self.person, self.email, self.email,
35
 
            LoginTokenType.PASSWORDRECOVERY)
36
 
        self._testCancelAction(ResetPasswordView, token)
37
 
 
38
32
    def test_ClaimTeamView(self):
39
33
        token = getUtility(ILoginTokenSet).new(
40
34
            self.person, self.email, self.email, LoginTokenType.TEAMCLAIM)