Ignore:
Timestamp:
21 Jun 2013, 23:39:57 (12 years ago)
Author:
uli
Message:

Add simple login form.

File:
1 edited

Legend:

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

    r10326 r10335  
    5555        resp = app(req)
    5656        assert resp.status == '501 Not Implemented'
     57
     58    def test_login_simple(self):
     59        # a simple login with no service will result in login screen
     60        # (2.1.1#service of protocol specs)
     61        app = CASServer()
     62        req = Request.blank('http://localhost/login')
     63        resp = app(req)
     64        assert resp.status == '200 OK'
     65        assert resp.content_type == 'text/html'
     66        assert b'<form ' in resp.body
Note: See TracChangeset for help on using the changeset viewer.