コード例 #1
0
 def testHelpLong(self):
     """--help should print usage"""
     google.main(["--help"])
     commandLineAnswer = self.lastOutput()
     google._usage()
     self.assertEqual(commandLineAnswer, self.lastOutput())
コード例 #2
0
ファイル: googletest.py プロジェクト: eox03y/OldWorks
 def testNoOptions(self):
     """no options at all should print usage"""
     google.main([])
     commandLineAnswer = self.lastOutput()
     google._usage()
     self.assertEqual(commandLineAnswer, self.lastOutput())
コード例 #3
0
 def testNoOptions(self):
     """no options at all should print usage"""
     google.main([])
     commandLineAnswer = self.lastOutput()
     google._usage()
     self.assertEqual(commandLineAnswer, self.lastOutput())
コード例 #4
0
ファイル: googletest.py プロジェクト: eox03y/OldWorks
 def testHelpLong(self):
     """--help should print usage"""
     google.main(["--help"])
     commandLineAnswer = self.lastOutput()
     google._usage()
     self.assertEqual(commandLineAnswer, self.lastOutput())