Beispiel #1
0
 def runCommand(self,
                cfg,
                argSet,
                args,
                profile=False,
                callback=None,
                repos=None):
     if len(args) < 3:
         return explain.docAll(cfg)
     return explain.docObject(cfg, args[2])
Beispiel #2
0
 def testExplainAll(self):
     def mockPageDoc(className, obj):
         self.assertEquals('All Classes', className)
         self.assertFalse('Available Classes' not in obj)
     self.mock(explain, '_pageDoc', mockPageDoc)
     explain.docAll(self.cfg)
Beispiel #3
0
 def runCommand(self, cfg, argSet, args, profile = False,
                callback = None, repos=None):
     if len(args) < 3:
         return explain.docAll(cfg)
     return explain.docObject(cfg, args[2])