add test for method get_protocol_version()
@@ -3,7 +3,7 @@ import pytest
from plenum.common.constants import NYM, NODE
from plenum.common.txn_util import get_type, set_type, get_payload_data, \
get_from, get_req_id, get_seq_no, get_txn_id, \
- get_txn_time, get_version, get_digest
+ get_txn_time, get_version, get_digest, get_protocol_version
from plenum.common.util import SortedDict
@@ -107,5 +107,9 @@ def test_get_txn_version(txn):
assert get_version(txn) == "1"
+def test_get_protocol_version(txn):
+ assert get_protocol_version(txn) == "2"
+
+
def test_get_digest(txn):
assert get_digest(txn) == "d0b78a4216cb2407934cafc87be06a1baffc809ded7558c9c08da227a4e92507"
