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