view 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
line wrap: on
line source

# I m p o r t s

import os, sys
import requests
from .. import ServerFixture, RoutesFixture

# C l a s s e s

class Fixture01(RoutesFixture):
    # One #error page should be able to #forward to another.
    def runTest(self):
        response = requests.get("http://localhost:{0}/boogers/".format(self.port))
        self.assertEqual(response.status_code, 404)
        self.assertTrue("How embarrassing!" in response.text)