예제 #1
0
 def test_critical_constants(self):
     """ ATTENTION: Changing of those constants may require changing of C++ code"""
     assert CMCHeader.length == 32
     assert CMCHeader.State.LOG.value == "LOG    "
     assert CMCHeader.State.RESULT.value == "RESULT "
     assert CMCHeader.State.END_OF_REPLY.value == "ENDREPL"
     assert CMCHeader.default_protocol_name() == "fetch"
예제 #2
0
 def test_critical_constants(self):
     """ ATTENTION: Changing of those constants may require changing of C++ code"""
     assert CMCHeader.length == 32
     assert CMCHeader.State.FAILURE == "FAILURE"
     assert CMCHeader.State.SUCCESS == "SUCCESS"
     assert CMCHeader.State.WAITING == "WAITING"
     assert CMCHeader.default_protocol_name() == "fetch"