def test_is_not_finished(self): """Checks if MoveAction correctly detects that it's not finished.""" action = MoveAction(5) self.robot.odometry.pose.pose.position.x = 3 self.robot.odometry.pose.pose.position.y = 2 self.assertFalse(action.is_finished(self.robot))
def test_is_finished(self): """Checks if MoveAction correctly detects that it's finished.""" action = MoveAction(5) self.robot.odometry.pose.pose.position.x = 5 self.robot.odometry.pose.pose.position.y = 5 self.assertTrue(action.is_finished(self.robot))