def setUp(self): '''Creates a test client and propagates the exceptions to the test client. ''' self.app = app.test_client() self.app.testing = True