def test_unsubscribe_ride_message_publish(self):
     PUBLISHER.subscribe(self._listener, RideTestMessageWithAttrs)
     PUBLISHER.unsubscribe(self._listener, RideTestMessageWithAttrs)
     PUBLISHER.publish(RideTestMessageWithAttrs, 'test')
     assert_equal(self._msg, '')
 def test_unsubscribe_ride_message(self):
     PUBLISHER.subscribe(self._listener, RideTestMessageWithAttrs)
     PUBLISHER.unsubscribe(self._listener, RideTestMessageWithAttrs)
     msg_obj = RideTestMessageWithAttrs(foo='one', bar='two')
     msg_obj.publish()
     assert_equal(self._msg, '')