def test_nativeToLogical_None(self):
        """Test passing None to the nativeToLogical method."""
        unit = AxisPosition(1, 2, 3, True, 4)

        # 1 - (2 + 3) = -4 ; -4 / 4 = -1

        result = unit.nativeToLogical(None)
        self.assertEqual(result, -1, "The result should be -1")

        unit.setAbsoluteMode(False)
        result = unit.nativeToLogical(None)
        self.assertEqual(result, -1, "The result should be -1")

        result = unit.nativeToLogical(None, True)
        self.assertEqual(result, -1, "The result should be -1")

        result = unit.nativeToLogical(None, False)
        self.assertEqual(result, -1, "The result should be -1")
 def test_setAbsoluteMode_False(self):
     """Test the setAbsoluteMode method when passed False."""
     unit = AxisPosition(1, 2, 3, True, 4)
     unit.setAbsoluteMode(False)
     self.assertFalse(unit.absoluteMode, "absoluteMode should be False")
 def test_setAbsoluteMode_True(self):
     """Test the setAbsoluteMode method when passed True."""
     unit = AxisPosition(1, 2, 3, False, 4)
     unit.setAbsoluteMode(True)
     self.assertTrue(unit.absoluteMode, "absoluteMode should be True")