From ee3c54593258c7beec5e67d86dcfd3fa62b3465f Mon Sep 17 00:00:00 2001 From: Ralf Schmitt Date: Wed, 31 Aug 2011 21:22:52 +0200 Subject: [PATCH] test that /favicon.ico doesn't redirect and returns a 404 --- tests/test_app.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_app.py b/tests/test_app.py index 811db07..9471162 100755 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -48,3 +48,12 @@ def test_packages_empty(root): show() code(200) 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) +