From c72ca6f39cf8dd73ff67f52998438642e79050ae Mon Sep 17 00:00:00 2001 From: 100gle <569590461@qq.com> Date: Mon, 22 Aug 2022 14:44:33 +0800 Subject: [PATCH] =?UTF-8?q?chore(vol07):=20=E8=B0=83=E6=95=B4=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/07/regex-quiz.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/07/regex-quiz.py b/code/07/regex-quiz.py index 7424ff3..399fc91 100644 --- a/code/07/regex-quiz.py +++ b/code/07/regex-quiz.py @@ -43,9 +43,10 @@ class TestRename(unittest.TestCase): def test_rename(self): for (raw, expected) in self.cases: - file = rename(raw) - self.assertEquals(file, expected) + with self.subTest(raw=raw, expected=expected): + file = rename(raw) + self.assertEqual(file, expected) if __name__ == '__main__': - unittest.main() + unittest.main(verbosity=2)