tests: account for empty class attribute
This commit is contained in:
parent
e669fe31e5
commit
f5c1079e73
|
@ -47,7 +47,7 @@ def test_home():
|
|||
create_formdef()
|
||||
home = get_app(pub).get('/')
|
||||
assert 'category-misc' in home.body
|
||||
assert '<a href="test/">test</a>' in home.body
|
||||
assert '<a class="" href="test/">test</a>' in home.body
|
||||
|
||||
def test_home_category():
|
||||
formdef = create_formdef()
|
||||
|
@ -56,7 +56,7 @@ def test_home_category():
|
|||
home = get_app(pub).get('/')
|
||||
assert 'category-foobar' in home.body
|
||||
assert not 'category-misc' in home.body
|
||||
assert '<a href="foobar/test/">test</a>' in home.body
|
||||
assert '<a class="" href="foobar/test/">test</a>' in home.body
|
||||
|
||||
def test_home_disabled():
|
||||
formdef = create_formdef()
|
||||
|
|
Loading…
Reference in New Issue