def testHelpLong(self):
     """--help should print usage"""
     google.main(["--help"])
     commandLineAnswer = self.lastOutput()
     google._usage()
     self.assertEqual(commandLineAnswer, self.lastOutput())
Exemplo n.º 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())
Exemplo n.º 4
0
 def testHelpLong(self):
     """--help should print usage"""
     google.main(["--help"])
     commandLineAnswer = self.lastOutput()
     google._usage()
     self.assertEqual(commandLineAnswer, self.lastOutput())