Commit c272414f authored by Vincent Pelletier's avatar 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.
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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment