def test_setLogicalPosition_None(self):
        """Test the setLogicalPosition method when passed None."""
        unit = AxisPosition(1, 2, 3, False, 4)
        rval = unit.setLogicalPosition(None)

        self.assertEqual(rval, 1, "The result should be 1")
        self.assertEqual(unit.current, 1, "current should be 1")
 def test_setLogicalPosition_Relative(self):
     """Test the setLogicalPosition method in relative mode."""
     unit = AxisPosition(1, 2, 3, False, 4)
     unit.setLogicalPosition(20)
     self.assertEqual(unit.current, 81, "current should be 81")
 def test_setLogicalPosition_Absolute(self):
     """Test the setLogicalPosition method in absolute mode."""
     unit = AxisPosition(1, 2, 3, True, 4)
     unit.setLogicalPosition(20)
     self.assertEqual(unit.current, 85, "current should be 85")