old_contents: import pytest
  from plenum.common.types import CatchupRep
  from collections import OrderedDict
  from plenum.common.messages.fields import \
      IterableField, LedgerIdField
  
  
  EXPECTED_ORDERED_FIELDS = OrderedDict([
      ("ledgerId", LedgerIdField),
      ("txns", IterableField),
      ("consProof", IterableField),
  ])
  
  
  def test_hash_expected_type():
      assert CatchupRep.typename == "CATCHUP_REP"
  
  
  def test_has_expected_fields():
      actual_field_names = OrderedDict(CatchupRep.schema).keys()
      assert actual_field_names == EXPECTED_ORDERED_FIELDS.keys()
  
  
  def test_has_expected_validators():
      schema = dict(CatchupRep.schema)
      for field, validator in EXPECTED_ORDERED_FIELDS.items():
          assert isinstance(schema[field], validator)
  
new_contents: import pytest
  from plenum.common.types import CatchupRep
  from collections import OrderedDict
  from plenum.common.messages.fields import \
      IterableField, LedgerIdField, MapField
  
  
  EXPECTED_ORDERED_FIELDS = OrderedDict([
      ("ledgerId", LedgerIdField),
      ("txns", MapField),
      ("consProof", IterableField),
  ])
  
  
  def test_hash_expected_type():
      assert CatchupRep.typename == "CATCHUP_REP"
  
  
  def test_has_expected_fields():
      actual_field_names = OrderedDict(CatchupRep.schema).keys()
      assert actual_field_names == EXPECTED_ORDERED_FIELDS.keys()
  
  
  def test_has_expected_validators():
      schema = dict(CatchupRep.schema)
      for field, validator in EXPECTED_ORDERED_FIELDS.items():
          assert isinstance(schema[field], validator)
  
subject: fix tests in test_catchuprep_message.py