• Home
  • Raw
  • Download

Lines Matching refs:completer

15         self.completer = rlcompleter.Completer(dict(spam=int,
29 self.assertFalse(self.completer.use_main_ns)
42 self.assertEqual(self.completer.global_matches('CompleteM'),
44 self.assertEqual(self.completer.global_matches('eg'),
47 self.assertEqual(self.completer.global_matches('CompleteM'),
63 self.assertEqual(self.completer.attr_matches('CompleteMe.sp'),
65 self.assertEqual(self.completer.attr_matches('Completeme.egg'), [])
66 self.assertEqual(self.completer.attr_matches('CompleteMe.'),
68 self.assertEqual(self.completer.attr_matches('CompleteMe._'),
70 matches = self.completer.attr_matches('CompleteMe.__')
77 self.assertEqual(self.completer.attr_matches('CompleteMe.me.me.sp'),
79 self.assertEqual(self.completer.attr_matches('egg.s'),
92 completer = rlcompleter.Completer(dict(f=f))
93 self.assertEqual(completer.complete('f.b', 0), 'f.bar')
101 completer = rlcompleter.Completer(dict(f=Foo()))
102 self.assertEqual(completer.complete('f.', 0), 'f.bar')
106 completer = rlcompleter.Completer()
107 self.assertEqual(completer.complete('', 0), '\t')
108 self.assertEqual(completer.complete('a', 0), 'and ')
109 self.assertEqual(completer.complete('a', 1), 'as ')
110 self.assertEqual(completer.complete('as', 2), 'assert ')
111 self.assertEqual(completer.complete('an', 0), 'and ')
112 self.assertEqual(completer.complete('pa', 0), 'pass')
113 self.assertEqual(completer.complete('Fa', 0), 'False')
114 self.assertEqual(completer.complete('el', 0), 'elif ')
115 self.assertEqual(completer.complete('el', 1), 'else')
116 self.assertEqual(completer.complete('tr', 0), 'try:')
126 completer = rlcompleter.Completer(namespace)
127 self.assertEqual(completer.complete('False', 0), 'False')
128 self.assertIsNone(completer.complete('False', 1)) # No duplicates
130 self.assertEqual(completer.complete('assert', 0), 'assert ')
131 self.assertIsNone(completer.complete('assert', 1))
132 self.assertEqual(completer.complete('try', 0), 'try:')
133 self.assertIsNone(completer.complete('try', 1))
135 self.assertEqual(completer.complete('memoryview', 0), 'memoryview')
136 self.assertIsNone(completer.complete('memoryview', 1))
137 self.assertEqual(completer.complete('Ellipsis', 0), 'Ellipsis(')
138 self.assertIsNone(completer.complete('Ellipsis', 1))