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): ...@@ -2261,16 +2261,20 @@ class CaucaseTest(unittest.TestCase):
stdout.getvalue().splitlines(), stdout.getvalue().splitlines(),
) )
self.assertEqual( try:
self._restoreServer( caucase.http.manage(
backup_path, argv=(
user2_key_path, '--db', self._server_db,
user2_new_csr_path, '--restore-backup',
user2_new_key_path, backup_path,
), user2_key_path,
0, user2_new_csr_path,
traceback.format_exc(), user2_new_key_path,
) ),
)
except SystemExit as e:
if e.code:
raise
after_restore = list(SQLite3Storage( after_restore = list(SQLite3Storage(
self._server_db, 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