for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""
All other misc. URL-related integration tests.
from . import integ_test_base
class TestURL(integ_test_base.IntegTestBase):
def test_notexistent_url(self):
# Uncomment the following line to preserve
# test case output and other files (config, state, ect.)
# in system temp folder.
# self.set_delete_temp_folder(False)
conn = self._get_connection()
conn.request("GET", "/unicorn")
res = conn.getresponse()
self.assertEqual(404, res.status)
def test_static_page(self):
conn.request("GET", "/")
self.assertEqual(200, res.status)