@@ -0,0 +1,848 @@
+import pytest%0Afrom plenum.common.types import Commit%0Afrom collections import OrderedDict%0Afrom plenum.common.messages.fields import NonNegativeNumberField%0A%0AEXPECTED_ORDERED_FIELDS = %5B%22instId%22, %22viewNo%22, %22ppSeqNo%22%5D%0AEXPECTED_ORDERED_VALIDATORS = %5BNonNegativeNumberField,%0A                               NonNegativeNumberField,%0A                               NonNegativeNumberField%5D%0A%0A%0Adef test_hash_expected_type():%0A    assert Commit.typename == %22COMMIT%22%0A%0A%0Adef test_has_expected_fields():%0A    actual_field_names = list(OrderedDict(Commit.schema).keys())%0A    assert actual_field_names == EXPECTED_ORDERED_FIELDS%0A%0A%0Adef test_has_expected_validators():%0A    schema = dict(Commit.schema)%0A    for field, validator in zip(EXPECTED_ORDERED_FIELDS,%0A                                EXPECTED_ORDERED_VALIDATORS):%0A        assert isinstance(schema%5Bfield%5D, validator)%0A

add test for commit message