Пример #1
0
 def testCanRetrieveErrors(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.errors()
         response = s.read_line()
         self.assertEqual(response["Kind"], "errors")
     finally:
         s.stop()
Пример #2
0
 def testCanRetrieveErrors(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.errors()
         response = s.read_line()
         self.assertEqual(response['Kind'], 'errors')
     finally:
         s.stop()