import unittest

class RequestTests(unittest.TestCase):
    def test_page_loads(self):
        response = make_request('the-page')
        self.assertTrue(200 == response, "Bad status code")

    def test_valid_post(self):
        response = make_request('the-page', method='POST', data='valid')
        self.assertTrue(200 == response, "Bad status code")

    def test_invalid_post(self):
        response = make_request('the-page', method='POST', data='invalid')
        self.assertTrue(200 == response, "Bad status code")