From 6b5ee287a0f3682254697f9be661396317f7898e Mon Sep 17 00:00:00 2001 From: Fanchen Bao Date: Tue, 9 Jul 2019 20:15:14 -0400 Subject: [PATCH] Turn message in test_hello_world.py into bytes to avoid failing the second test --- test_hello_world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_hello_world.py b/test_hello_world.py index bcbfee8..7a8f775 100644 --- a/test_hello_world.py +++ b/test_hello_world.py @@ -14,7 +14,7 @@ def test_status_code(self): def test_message(self): response = self.app.get('/') message = hello_world.wrap_html('Hello PyLadies Chicago!') - self.assertEqual(response.data, message) + self.assertEqual(response.data, bytes(message, 'utf-8')) # turn message into bytes for proper comparison if __name__ == '__main__': unittest.main() \ No newline at end of file