old_contents: import pytest
  from pypeerassets import protocol
  
  
  def test_deck_object():
      '''test creation of deck objects'''
  
      deck = protocol.Deck(name="decky", number_of_decimals=2, issue_mode="MULTI",
                           network="ppc", production=True,
                           asset_specific_data="Just testing.")
  
      assert deck.__dict__ == {'asset_id': None,
                               'asset_specific_data': 'Just testing.',
                               'issue_mode': 'MULTI',
                               'issue_time': None,
                               'issuer': '',
                               'name': 'decky',
                               'network': 'ppc',
                               'number_of_decimals': 2,
                               'production': True,
                               'testnet': False,
                               'version': 1
                               }
  
new_contents: import pytest
  from pypeerassets import protocol
  
  
  def test_deck_object():
      '''test creation of deck objects'''
  
      deck = protocol.Deck(name="decky", number_of_decimals=2, issue_mode="MULTI",
                           network="ppc", production=True,
                           asset_specific_data="Just testing.")
  
      assert deck.__dict__ == {'asset_id': None,
                               'asset_specific_data': 'Just testing.',
                               'issue_mode': 'MULTI',
                               'issue_time': None,
                               'issuer': '',
                               'name': 'decky',
                               'network': 'ppc',
                               'number_of_decimals': 2,
                               'production': True,
                               'testnet': False,
                               'version': 1
                               }
  
      assert deck.metainfo_to_protobuf == b'\x08\x01\x12\x05decky\x18\x02 \x04*\rJust testing.'
  
      assert deck.metainfo_to_dict == {'issue_mode': 'MULTI', 'name': 'decky', 'number_of_decimals': 2, 'version': 1}
  
subject: expand deck_object test.