Fix Digital Bitbox tests for API changes

The Digital Bitbox API changed slightly which broke our tests due to
the ordering of some operations. Normal usage is still fine.
This commit is contained in:
Andrew Chow 2019-02-25 16:03:50 -05:00
parent ca9f0106cd
commit 6c9964ef84

View File

@ -93,6 +93,9 @@ def digitalbitbox_test_suite(rpc, userpass, simulator):
self.assertTrue(result['success'])
# Reset back to original
result = process_commands(self.dev_args + ['wipe'])
self.assertTrue(result['success'])
send_plain(b'{"password":"0000"}', dev)
send_encrypt(json.dumps({"seed":{"source":"backup","filename":"test_backup.pdf","key":"key"}}), '0000', dev)
# Make sure device is init, setup should fail