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,))
Ejemplo n.º 2
0
 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,))
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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))
Ejemplo n.º 5
0
 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
Ejemplo n.º 7
0
 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)
Ejemplo n.º 8
0
 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)