def METHOD_NAME(self):
    """Test datetime to rospy.Time conversion."""
    for _ in range(10):
        unix_stamp = random.randrange(0, int(time.time()))
        rp1 = rospy.Time(unix_stamp)
        dt1 = rospy_to_datetime(rp1)
        self.assertEqual(datetime_to_rospy(dt1), rp1)