MCPcopy Create free account
hub / github.com/cloudwan/gohan / assertEqualCompletion

Method assertEqualCompletion

tools/bash_completion_tests.py:27–34  ·  view source on GitHub ↗
(self, program, cline, line, words, cword, point)

Source from the content-addressed store, hash-verified

25class CompletionTestCase(unittest.TestCase):
26
27 def assertEqualCompletion(self, program, cline, line, words, cword, point):
28 c = Completion()
29 c.prepare(program, cline)
30 self.assertEqual(c.program, program)
31 self.assertEqual(c.COMP_LINE, line)
32 self.assertEqual(c.COMP_WORDS, words)
33 self.assertEqual(c.COMP_CWORD, cword)
34 self.assertEqual(c.COMP_POINT, point)
35
36class BashCompletionTest(unittest.TestCase):
37 def run_complete(self, completion_file, program, command, expected):

Callers

nothing calls this directly

Calls 2

prepareMethod · 0.95
CompletionClass · 0.70

Tested by

no test coverage detected