def test_hasImpact_allDeltasZero(self): axes = {"wght":(0.0, 1.0, 1.0)} gvar = GlyphVariation(axes, [(0,0), (0,0), (0,0)]) self.assertTrue(gvar.hasImpact())
def test_hasImpact_allDeltasNone(self): axes = {"wght":(0.0, 1.0, 1.0)} gvar = GlyphVariation(axes, [None, None, None]) self.assertFalse(gvar.hasImpact())
def test_hasImpact_someDeltasNotZero(self): axes = {"wght":(0.0, 1.0, 1.0)} gvar = GlyphVariation(axes, [(0,0), (9,8), (7,6)]) self.assertTrue(gvar.hasImpact())
def test_hasImpact_allDeltasNone(self): axes = {"wght": (0.0, 1.0, 1.0)} gvar = GlyphVariation(axes, [None, None, None]) self.assertFalse(gvar.hasImpact())
def test_hasImpact_allDeltasZero(self): axes = {"wght": (0.0, 1.0, 1.0)} gvar = GlyphVariation(axes, [(0, 0), (0, 0), (0, 0)]) self.assertTrue(gvar.hasImpact())
def test_hasImpact_someDeltasNotZero(self): axes = {"wght": (0.0, 1.0, 1.0)} gvar = GlyphVariation(axes, [(0, 0), (9, 8), (7, 6)]) self.assertTrue(gvar.hasImpact())
def test_hasImpact_allDeltasZero(self): axes = {"wght":(0.0, 1.0, 1.0)} gvar = GlyphVariation(axes, GlyphCoordinates([(0,0), (0,0), (0,0)])) self.assertFalse(gvar.hasImpact())