Go to the documentation of this file.00001
00002
00003 import sys
00004 import unittest
00005 import rospy
00006 import rocon_python_comms
00007 from std_msgs.msg import String
00008 import rosunit
00009
00010 class TestSubscriberProxy(unittest.TestCase):
00011
00012 def setUp(self):
00013 rospy.init_node('listener', anonymous=True)
00014 pass
00015
00016 def test_subscriber_proxy(self):
00017 talker_data = rocon_python_comms.SubscriberProxy('chatter', String)()
00018 self.assertEquals("dude", talker_data.data)
00019
00020 def tearDown(self):
00021 pass
00022
00023 NAME = 'test_subscriber_proxy'
00024 if __name__ == '__main__':
00025 rosunit.unitrun('test_subscriber_proxy', NAME, TestSubscriberProxy, sys.argv, coverage_packages=['rocon_python_comms'])