Example #1
0
class Test_complete_session(unittest.TestCase):
    def setUp(self):
        self.c_engine = CRSEngine(49580)
        self.c_engine.start()

    def tearDown(self):
        pass

    def test_complete(self):
        self.c_engine.RegisterService(CRSRobot, 49582, 49580)
        self.c_engine.RegisterService(CRSDSS, 49601, 49582)
Example #2
0
class Test_engine(unittest.TestCase):
    def setUp(self):
        pass

    def tearDown(self):
        pass

    def test_robot(self):
        self.c_engine = CRSEngine(49580)
        self.c_engine.start()
        host, port = self.c_engine.GetServerInfo()
        self.assertEqual(port, 49580, "falha no server")
        self.assertEqual(host, "127.0.0.1", "falha no server")
Example #3
0
class Test_dss(unittest.TestCase):
    def setUp(self):
        self.c_engine = CRSEngine(49580)
        self.c_engine.start()
        self.c_robot = CRSRobot(49582, 49580)
        self.c_robot.start()

    def tearDown(self):
        pass

    def test_dss(self):
        self.c_dss = CRSDSS(49601, 49582)
        self.c_dss.start()
        host, port = self.c_dss.GetServerInfo()
        self.assertEqual(port, 49601, "falha no server")
        self.assertEqual(host, "127.0.0.1", "falha no server")
Example #4
0
 def setUp(self):
     self.c_engine = CRSEngine(49580)
     self.c_engine.start()
Example #5
0
 def setUp(self):
     self.c_engine = CRSEngine(49580)
     self.c_engine.start()
     self.c_robot = CRSRobot(49582, 49580)
     self.c_robot.start()
Example #6
0
 def test_robot(self):
     self.c_engine = CRSEngine(49580)
     self.c_engine.start()
     host, port = self.c_engine.GetServerInfo()
     self.assertEqual(port, 49580, "falha no server")
     self.assertEqual(host, "127.0.0.1", "falha no server")