~bcsaller/charmworld/peer-support

« back to all changes in this revision

Viewing changes to charmworld/views/tests/test_auth.py

  • Committer: Tarmac
  • Author(s): Brad Crittenden
  • Date: 2013-09-04 01:13:31 UTC
  • mfrom: (377.1.2 fix-login)
  • Revision ID: tarmac-20130904011331-bkc6h4wl1mwdru31
[r=benji,sinzui][bug=][author=bac] Fix the login page.  Add route tests for login and logout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
            body = resp.body
49
49
            self.assertNotIn("/login/openid", body)
50
50
            self.assertIn("/logout", body)
 
51
 
 
52
    def test_login_route(self):
 
53
        path = '/login/openid'
 
54
        response = self.app.get(path, status=200)
 
55
 
 
56
    def test_logout_route(self):
 
57
        path = '/logout'
 
58
        response = self.app.get(path, status=302)