Commits

Attila Magyar  committed 17cc03a

added some docstrings

  • Participants
  • Parent commits 260bb4c

Comments (0)

Files changed (1)

File src/macaque/core/mocks.py

         if not self.arg_map.has_matched(*args, **kargs):
             self.arg_map.store(BatchCommand(command), *args, **kargs)
         else:
-            existing_commands = self.arg_map.find_matched(*args, **kargs)
-            existing_commands[0].add_command(command)
+            self.append_to_existing(command, args, kargs)
+
+    def append_to_existing(self, command, args, kargs):
+        existing_commands = self.arg_map.find_matched(*args, **kargs)
+        existing_commands[0].add_command(command)
         
     def execute(self, *args, **kargs):
         commands = self.arg_map.find_matched(*args, **kargs)