def test_size_is_relative(self):
        size_px = Size(30, UnitEnum.PIXEL)
        size_percent = Size(30, UnitEnum.PERCENT)

        self.assertFalse(size_px.is_relative())
        self.assertTrue(size_percent.is_relative())
Ejemplo n.º 2
0
    def test_size_is_relative(self):
        size_px = Size(30, UnitEnum.PIXEL)
        size_percent = Size(30, UnitEnum.PERCENT)

        assert not size_px.is_relative()
        assert size_percent.is_relative()
Ejemplo n.º 3
0
    def test_size_is_relative(self):
        size_px = Size(30, UnitEnum.PIXEL)
        size_percent = Size(30, UnitEnum.PERCENT)

        self.assertFalse(size_px.is_relative())
        self.assertTrue(size_percent.is_relative())