''' tests for the common layout and simple (static)''' from . import testapp def test_layout_unauthenticated_user(testapp): ''' test the layout template elements for unauthenticated users The '/faq' path is used; '/' will redirect on authenticated users ''' testapp.reset() response = testapp.get('/faq') assert '' in response assert 'class="login-form' in response def test_page_welcome_unauthenticated(testapp): ''' test the welcome page for a unauthenticated user ''' testapp.reset() response = testapp.get('/') # basic content test assert 'Ordr | Welcome' in response # test that no sections are highlightet assert '