Changeset 10606


Ignore:
Timestamp:
10 Sep 2013, 14:59:02 (11 years ago)
Author:
uli
Message:

Make sure that we can use shared headers/footers in templates.

File:
1 edited

Legend:

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

    r10604 r10606  
    8282        assert app._get_template('login.html') is not None
    8383        assert app._get_template('not-existent.html') is None
     84        # parts of header and footer are replaced
     85        assert 'PART_HEADER' not in app._get_template('login.html')
     86        assert 'PART_FOOTER' not in app._get_template('login.html')
    8487
    8588    def test_call_root(self):
     
    571574        assert get_template('not-existing-template') is None
    572575        assert get_template('login.html') is not None
     576        # parts of header and footer are replaced
     577        assert 'PART_HEADER' not in get_template('login.html')
     578        assert 'PART_FOOTER' not in get_template('login.html')
    573579
    574580    def test_delete_session_cookie(self):
Note: See TracChangeset for help on using the changeset viewer.