def testCanRetrieveTooltip(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.tooltip(p, 12, 9) response = s.read_line() self.assertEqual(response["Kind"], "tooltip") finally: s.stop()
def testCanRetrieveTooltip(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.tooltip(p, 12, 9) response = s.read_line() self.assertEqual(response['Kind'], 'tooltip') finally: s.stop()