You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
695 B
21 lines
695 B
''' tests for the common layout and simple (static)''' |
|
|
|
from . import testapp |
|
|
|
|
|
def test_account_register_unauthenticated(testapp): |
|
''' test the registration page for a unauthenticated user ''' |
|
testapp.reset() |
|
|
|
response = testapp.get('/account/register') |
|
|
|
# basic content test |
|
assert 'Ordr | Account Registration' in response |
|
assert '<!-- No logged in user -->' in response |
|
# test the main nav section links and highlighting |
|
li_one, li_two = response.html.find_all('li', class_='nav-item') |
|
assert 'active' not in li_one['class'] |
|
assert li_one.find('a').text == 'FAQs' |
|
assert 'active' in li_two['class'] |
|
assert li_two.find('a').text == 'Register' |
|
|
|
|