oz123 11 年之前
父节点
当前提交
a52a1f6b87
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      pwman/tests/db_tests.py

+ 2 - 1
pwman/tests/db_tests.py

@@ -169,7 +169,8 @@ class CLITests(unittest.TestCase):
         password = self.tester.cli.get_password(None, leetify=True,
                                                 reader=lambda x: u'HAtman')
         print password
-        self.assertRegexpMatches(password, "(H|h)?(A|a|4)?(T|t|\+)?(m|M|\|\/\|)?(A|a|4)?(N|n|\|\\|)?")
+        self.assertRegexpMatches(password, ("(H|h)?(A|a|4)?(T|t|\+)?(m|M|\|"
+                                            "\/\|)?(A|a|4)?(N|n|\|\\|)?"))
 
     def test_get_url(self):
         url = self.tester.cli.get_url(reader=lambda: u'example.com')