comparison tests/suite_08_error_error/__init__.py @ 71:88adf10be709 draft

Add tests.
author David Barts <n5jrn@me.com>
date Mon, 15 Jul 2019 13:16:31 -0700
parents
children
comparison
equal deleted inserted replaced
70:a78c74c73d98 71:88adf10be709
1 # I m p o r t s
2
3 import os, sys
4 import requests
5 from .. import ServerFixture, RoutesFixture
6
7 # C l a s s e s
8
9 class Fixture01(RoutesFixture):
10 # One #error page should be able to #forward to another.
11 def runTest(self):
12 response = requests.get("http://localhost:{0}/boogers/".format(self.port))
13 self.assertEqual(response.status_code, 404)
14 self.assertTrue("How embarrassing!" in response.text)