Lines Matching refs:completer
14 self.completer = rlcompleter.Completer(dict(spam=int,
28 self.assertFalse(self.completer.use_main_ns)
41 self.assertEqual(self.completer.global_matches('CompleteM'),
43 self.assertEqual(self.completer.global_matches('eg'),
46 self.assertEqual(self.completer.global_matches('CompleteM'),
57 self.assertEqual(self.completer.attr_matches('CompleteMe.sp'),
59 self.assertEqual(self.completer.attr_matches('Completeme.egg'), [])
62 self.assertEqual(self.completer.attr_matches('CompleteMe.me.me.sp'),
64 self.assertEqual(self.completer.attr_matches('egg.s'),
77 completer = rlcompleter.Completer(dict(f=f))
78 self.assertEqual(completer.complete('f.b', 0), 'f.bar')
92 completer = rlcompleter.Completer(namespace)
93 self.assertEqual(completer.complete('False', 0), 'False')
94 self.assertIsNone(completer.complete('False', 1)) # No duplicates
95 self.assertEqual(completer.complete('assert', 0), 'assert')
96 self.assertIsNone(completer.complete('assert', 1))
97 self.assertEqual(completer.complete('try', 0), 'try')
98 self.assertIsNone(completer.complete('try', 1))
100 self.assertEqual(completer.complete('memoryview', 0), 'memoryview')
101 self.assertIsNone(completer.complete('memoryview', 1))
102 self.assertEqual(completer.complete('Ellipsis', 0), 'Ellipsis(')
103 self.assertIsNone(completer.complete('Ellipsis', 1))