~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to benchmarks/test_auth.py

  • Committer: Ursula Junque
  • Date: 2009-08-07 07:45:09 UTC
  • mto: This revision was merged to the branch mainline in revision 9077.
  • Revision ID: ursinha@canonical.com-20090807074509-uex3bacvqog37i3q
Now getting the login and passwd from the test conf file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
            self.fail('Form contained error: %s' % match.group(1))
31
31
 
32
32
    def assertIsNotLoggedIn(self, response):
 
33
        # Not sure if this checking is needed.
33
34
        self.assertEquals(response.code, 200)
34
35
        match = response.body.find('If this is not you, please'
35
36
            '<a href="/+logout">log out now</a>')
48
49
        self.assertIsNotLoggedIn(response)
49
50
 
50
51
        # The credentials of foo user, the loginator
51
 
        email = 'foo@mailinator.com'
52
 
        password = 'test'
 
52
        email = self.conf_get('main', 'login')
 
53
        password = self.conf_get('main', 'password')
53
54
 
54
55
        # Get only the first form of the page, the login one,
55
56
        # and fill it