Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 import sys
00011 import rospy
00012 import rocon_console.console as console
00013 from rocon_gateway import samples
00014 import gateway_msgs.msg as gateway_msgs
00015 import unittest
00016 import rosunit
00017
00018
00019
00020
00021
00022 class TestConnectHubByService(unittest.TestCase):
00023
00024 def setUp(self):
00025 rospy.init_node('test_connect_hub_by_service')
00026
00027 def test_connect_hub_by_service(self):
00028 print("\n********************************************************************")
00029 print("* Sending Connect Hub Request")
00030 print("********************************************************************")
00031 result, unused_error_message = samples.connect_hub_by_service(raise_exception=False)
00032 self.assertEquals(gateway_msgs.ErrorCodes.SUCCESS, result)
00033
00034 def tearDown(self):
00035 pass
00036
00037 NAME = 'test_connect_hub_by_service'
00038 if __name__ == '__main__':
00039 rosunit.unitrun('test_connect_hub_by_service', NAME, TestConnectHubByService, sys.argv, coverage_packages=['rocon_gateway'])