'Helper function to assert if a proto field equals some value.
Args:
proto_field: The protobuf field to compare.
expectation: The expected value of the protobuf field.'

def _assertProtoEqual(self, proto_field, expectation):

    proto_list = [p for p in proto_field]
    self.assertListEqual(proto_list, expectation)
