Ignore:
Timestamp:
20 Jun 2013, 22:31:55 (12 years ago)
Author:
uli
Message:

Check for default pages required by CAS protocol.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.cas/trunk/waeup/cas/tests/test_server.py

    r10322 r10326  
    2929
    3030    def test_call_root(self):
     31        # the CAS protocol requires no root
    3132        app = CASServer()
    3233        req = Request.blank('http://localhost/')
    3334        resp = app(req)
    3435        assert resp.status == '404 Not Found'
     36
     37    def test_first_time_login(self):
     38        # we can get a login page
     39        app = CASServer()
     40        req = Request.blank('http://localhost/login')
     41        resp = app(req)
     42        assert resp.status == '200 OK'
     43
     44    def test_validate(self):
     45        # we can access a validation page
     46        app = CASServer()
     47        req = Request.blank('http://localhost/validate')
     48        resp = app(req)
     49        assert resp.status == '501 Not Implemented'
     50
     51    def test_logout(self):
     52        # we can access a logout page
     53        app = CASServer()
     54        req = Request.blank('http://localhost/logout')
     55        resp = app(req)
     56        assert resp.status == '501 Not Implemented'
Note: See TracChangeset for help on using the changeset viewer.