added resp body check back

This commit is contained in:
Sairam Aripirala 2020-08-11 16:07:28 -04:00
parent 9a833e3178
commit 9a2bd07468

View file

@ -412,6 +412,7 @@ class RequestHandlerMixinTestCase(TestCase):
execute.side_effect = psycopg2.Error()
response = self.fetch('/execute?value=1')
self.assertEqual(response.code, 500)
self.assertIn(b'Database Error', response.body)
@mock.patch('aiopg.cursor.Cursor.fetchone')
def test_postgres_programming_error(self, fetchone):