Commit c272414f by Vincent Pelletier

test: format_exc in 3rd assert* method argument is pointless.

Just call cli.manage directly to get produced exception, as it's what this
part of the test is really about.
1 parent ce1c239a
......@@ -2261,16 +2261,20 @@ class CaucaseTest(unittest.TestCase):
stdout.getvalue().splitlines(),
)
self.assertEqual(
self._restoreServer(
backup_path,
user2_key_path,
user2_new_csr_path,
user2_new_key_path,
),
0,
traceback.format_exc(),
)
try:
caucase.http.manage(
argv=(
'--db', self._server_db,
'--restore-backup',
backup_path,
user2_key_path,
user2_new_csr_path,
user2_new_key_path,
),
)
except SystemExit as e:
if e.code:
raise
after_restore = list(SQLite3Storage(
self._server_db,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!