def testCanRetrieveCompletions(self): try: cmd, args = self.cmd_line s = Server(cmd, *args) s.start() p = os.path.join(DATA_DIR, "FileTwo.fs") s.parse(p) _ = s.read_line() s.completions(p, 12, 9) helptext = s.read_line() completions = s.read_line() self.assertEqual(helptext["Kind"], "helptext") self.assertEqual(completions["Kind"], "completion") finally: s.stop()
def testCanRetrieveCompletions(self): try: cmd, args = self.cmd_line s = Server(cmd, *args) s.start() p = os.path.join(DATA_DIR, 'FileTwo.fs') s.parse(p) _ = s.read_line() s.completions(p, 12, 9) helptext = s.read_line() completions = s.read_line() self.assertEqual(helptext['Kind'], 'helptext') self.assertEqual(completions['Kind'], 'completion') finally: s.stop()