test that /favicon.ico doesn't redirect and returns a 404

This commit is contained in:
Ralf Schmitt 2011-08-31 21:22:52 +02:00
parent baa2936217
commit ee3c545932

@ -48,3 +48,12 @@ def test_packages_empty(root):
show() show()
code(200) code(200)
assert list(showlinks()) == [] assert list(showlinks()) == []
def test_favicon(root):
final_url = go("/favicon.ico")
show()
print "FINAL_URL:", final_url
assert final_url == "http://localhost:8080/favicon.ico"
code(404)