def test_getAutoCompleteList_NoDouble(self): for item in self.items: result = introspect.getAutoCompleteList(item, includeDouble=0) attributes = [attribute for attribute in result \ if attribute[:2] != '__'] self.assertEqual(result, attributes, ':item: %r' % (item,))
def getAutoCompleteList(self, command="", *args, **kwds): """Return list of auto-completion options for a command. The list of options will be based on the locals namespace.""" stdin, stdout, stderr = sys.stdin, sys.stdout, sys.stderr sys.stdin, sys.stdout, sys.stderr = self.stdin, self.stdout, self.stderr l = introspect.getAutoCompleteList(command, self.locals, *args, **kwds) sys.stdin, sys.stdout, sys.stderr = stdin, stdout, stderr return l
def test_getAutoCompleteList(self): for item in self.items: result = introspect.getAutoCompleteList(item) object = eval(item[:-1]) attributes = [attribute for attribute in self.values \ if hasattr(object, attribute)] for attribute in attributes: self.assert_(attribute in result, ':item: %r :attribute: %r' % (item, attribute))
def getAutoCompleteList(self, command='', *args, **kwds): """Return list of auto-completion options for a command. The list of options will be based on the locals namespace.""" stdin, stdout, stderr = sys.stdin, sys.stdout, sys.stderr sys.stdin, sys.stdout, sys.stderr = \ self.stdin, self.stdout, self.stderr l = introspect.getAutoCompleteList(command, self.locals, *args, **kwds) sys.stdin, sys.stdout, sys.stderr = stdin, stdout, stderr return l
def getAutoCompleteList(self, command='', *args, **kwds): """Return list of auto-completion options for a command. The list of options will be based on the locals namespace.""" return introspect.getAutoCompleteList(command, self.locals, *args, **kwds)