def testHelpLong(self):
     """--help should print usage"""
     google.main(["--help"])
     commandLineAnswer = self.lastOutput()
     google._usage()
     self.assertEqual(commandLineAnswer, self.lastOutput())
Example #2
0
 def testNoOptions(self):
     """no options at all should print usage"""
     google.main([])
     commandLineAnswer = self.lastOutput()
     google._usage()
     self.assertEqual(commandLineAnswer, self.lastOutput())
 def testNoOptions(self):
     """no options at all should print usage"""
     google.main([])
     commandLineAnswer = self.lastOutput()
     google._usage()
     self.assertEqual(commandLineAnswer, self.lastOutput())
Example #4
0
 def testHelpLong(self):
     """--help should print usage"""
     google.main(["--help"])
     commandLineAnswer = self.lastOutput()
     google._usage()
     self.assertEqual(commandLineAnswer, self.lastOutput())