参考
https://stackoverflow.com/questions/36834677/print-success-messages-for-asserts-in-python
总结
class BasicTestCase(unittest.TestCase):
def test_index(self):
"""Initial test: Ensure flask was set up correctly."""
tester = app.app.test_client(self)
response = tester.get('/', content_type='html/text')
self.assertEqual(response.status_code, 200)
print('test_index success!')
在assert后加上print