diff --git a/mocha/core/InstanceKey.py b/mocha/core/InstanceKey.py index 3654905..7786350 100644 --- a/mocha/core/InstanceKey.py +++ b/mocha/core/InstanceKey.py @@ -23,4 +23,7 @@ class InstanceKey(): def __str__(self): return str(self.get_class_index()) + '$' + str(self.get_instance_index()) - \ No newline at end of file + + def to_tuple(self): + return (self.__class_id, self.__inst_id) +