def test_view_label_for_decred_block_headers(self):
     labels = [
         "Version",
         "Prev Block Hash",
         "Merkle Root Hash",
         "Stake Root Hash",
         "Vote Bits",
         "Final State",
         "Voters",
         "Fresh Stake",
         "Revocations",
         "Pool Size",
         "Bits",
         "Stake Bits",
         "Height",
         "Size",
         "Time",
         "Nonce",
         "Extra Data",
     ]
     test_items = [LabelTest(*i) for i in zip([field.attr for field in dcr_header_fields], labels)]
     for test in test_items:
         self.assertEqual(test.label, gui_utils.get_label_for_attr(test.attr))
 def test_view_label_for_decred_txin_fields(self):
     labels = ["Prevout", "Sequence", "Value", "Block Height", "Block Index", "Sig Script"]
     test_items = [LabelTest(*i) for i in zip([field.attr for field in dcr_txin_fields], labels)]
     for test in test_items:
         self.assertEqual(test.label, gui_utils.get_label_for_attr(test.attr))
 def test_view_label_for_decred_txout_fields(self):
     labels = ["Value", "Version", "Pub Key Script"]
     test_items = [LabelTest(*i) for i in zip([field.attr for field in dcr_txout_fields], labels)]
     for test in test_items:
         self.assertEqual(test.label, gui_utils.get_label_for_attr(test.attr))