old_contents: #!/usr/bin/env python
  import rospy, unittest, rostest
  import rosnode
  import time
  
  class BuzzerTest(unittest.TestCase):
  	def test_node_exist(self):
  		nodes = rosnode.get_node_names()
  		self.assertIn('/buzzer', nodes, "nodedoes not exist")
  
  	def test_put_value(self):
  		pub = rospy.Publisher('/buzzer', UInt16)
  		for i in range(10):
  			pub.publish(1234)
  			time.sleep(0.1)		
  		
  		with open("/dev/rtbuzzer0","r") as f:
  			data = f.readline()
  			self.assertEqual(data,"1234\n","calue does not written to rtbuzzer0")
  
  if __name__ == '__main__':
  	time.sleep(3)
  	rospy.init_node('travis_test_buzzer')
  	rostest.rosrun('pimouose_ros', 'travis_test_buzzer', BuzzerTest)
  
new_contents: #!/usr/bin/env python
  import rospy, unittest, rostest
  import rosnode
  import time
  from std_msgs.msg import UInt16
  
  class BuzzerTest(unittest.TestCase):
  	def test_node_exist(self):
  		nodes = rosnode.get_node_names()
  		self.assertIn('/buzzer', nodes, "nodedoes not exist")
  
  	def test_put_value(self):
  		pub = rospy.Publisher('/buzzer', UInt16)
  		for i in range(10):
  			pub.publish(1234)
  			time.sleep(0.1)		
  		
  		with open("/dev/rtbuzzer0","r") as f:
  			data = f.readline()
  			self.assertEqual(data,"1234\n","calue does not written to rtbuzzer0")
  
  if __name__ == '__main__':
  	time.sleep(3)
  	rospy.init_node('travis_test_buzzer')
  	rostest.rosrun('pimouose_ros', 'travis_test_buzzer', BuzzerTest)
  
subject: fix Type error