Fix Python NNCtest failure on some versions of Protocol Buffers

This commit is contained in:
Gaute Lindkvist
2020-02-26 09:38:44 +01:00
parent f966d81249
commit 3a4d998ab1

View File

@@ -19,11 +19,11 @@ def test_10kSync(rips_instance, initialize_test):
assert(len(properties) == 3)
assert("TRAN" == properties[0].name)
assert(NNCProperties_pb2.NNCPropertyType.NNC_STATIC == properties[0].property_type)
assert(NNCProperties_pb2.NNCPropertyType.Value('NNC_STATIC') == properties[0].property_type)
assert("Binary Formation Allen" == properties[1].name)
assert(NNCProperties_pb2.NNCPropertyType.NNC_GENERATED == properties[1].property_type)
assert(NNCProperties_pb2.NNCPropertyType.Value('NNC_GENERATED') == properties[1].property_type)
assert("Formation Allen" == properties[2].name)
assert(NNCProperties_pb2.NNCPropertyType.NNC_GENERATED == properties[2].property_type)
assert(NNCProperties_pb2.NNCPropertyType.Value('NNC_GENERATED') == properties[2].property_type)
nnc_connections = case.nnc_connections()
assert(len(nnc_connections) == 84759)