import unittest
from app import app

class FlaskModPiTests(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        pass

    @classmethod
    def tearDownClass(cls):
        pass

    def setUp(self):
        # creates a test client
        self.app = app.test_client()
        # propagate the exceptions to the test client
        self.app.testing = True

    def tearDown(self):
        pass

    def test_say_status_code(self):
        # sends HTTP GET request to the application
        # on the specified path
        result = self.app.post('/say')

        # assert the status code of the response
        self.assertEqual(result.status_code, 200)
