def testRestartWithoutProcessName(self):
     with self.assertRaises(SystemExit) as exception:
         supervisorclusterctl.main(["dev", "restart"])
     self.assertEqual(exception.exception.code, 2)
 def testWithHelpOption(self):       
     with self.assertRaises(SystemExit) as exception:
         supervisorclusterctl.main(["-h"])            
     self.assertEqual(exception.exception.code, 0)
 def testWithoutHostPatternArgument(self):       
     with self.assertRaises(SystemExit) as exception:
         supervisorclusterctl.main([])            
     self.assertEqual(exception.exception.code, 2)