File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,12 +235,17 @@ def test_reset_device_dice(self):
235235
236236 mnemonic = []
237237 while isinstance (resp , proto .ButtonRequest ):
238- mnemonic .append (self .client .debug .read_reset_word ())
238+ words = self .client .debug .read_reset_word ()
239+ # Debug subpages repeat their logical word group, as in the
240+ # normal reset collector above. Keep the final seed assertion.
241+ if not mnemonic or mnemonic [- 1 ] != words :
242+ mnemonic .append (words )
239243 self .client .debug .press_yes ()
240244 resp = self .client .call_raw (proto .ButtonAck ())
241245
242246 self .assertIsInstance (resp , proto .Success )
243247 self .assertEqual (' ' .join (mnemonic ), expected_mnemonic )
248+ self .assertEqual (strength // 32 * 3 , len (' ' .join (mnemonic ).split ()))
244249
245250 def test_reset_reentry_disarms_entropy_ack (self ):
246251 """An abandoned reset must never leave EntropyAck armed.
You can’t perform that action at this time.
0 commit comments