def test_unlock_call_without_lock(self): # simulate 'unlock' call without existing lock sys.argv = ['opensubmit-exec', 'unlock'] cmdline.console_script()
def test_unlock_call_with_lock(self): # simulate 'unlock' call with existing lock sys.argv = ['opensubmit-exec', 'unlock'] with locking.ScriptLock(self.config): cmdline.console_script()
def test_help_call_without_config(self): # simulate 'help' call sys.argv = ['opensubmit-exec', 'help'] cmdline.console_script()