test_connect_hub_by_service.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #       
00003 # License: BSD
00004 #   https://raw.github.com/robotics-in-concert/rocon_multimaster/hydro-devel/rocon_gateway_tests/LICENSE 
00005 #
00006 ##############################################################################
00007 # Imports
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 # Main
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'])


rocon_gateway_tests
Author(s): Daniel Stonier, Jihoon Lee, Piyush Khandelwal
autogenerated on Sat Jun 8 2019 18:48:48