Exemplo n.º 1
0
 def test_unlock_call_without_lock(self):
     # simulate 'unlock' call without existing lock
     sys.argv = ['opensubmit-exec', 'unlock']
     cmdline.console_script()
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
 def test_help_call_without_config(self):
     # simulate 'help' call
     sys.argv = ['opensubmit-exec', 'help']
     cmdline.console_script()