def test_constructor2(self): stop = _GradientStop(offset='50%', color='red', opacity=0.63, debug=True, profile='full') self.assertEqual( stop.tostring(), '<stop offset="50%" stop-color="red" stop-opacity="0.63" />')
def test_constructor1(self): stop = _GradientStop(offset=0.5, color='red', opacity=1.0, debug=True, profile='full') self.assertEqual( stop.tostring(), '<stop offset="0.5" stop-color="red" stop-opacity="1.0" />')
def test_constructor3(self): stop = _GradientStop(debug=True, profile='full') self.assertEqual(stop.tostring(), '<stop />')
def test_constructor2(self): stop = _GradientStop(offset='50%', color='red', opacity=0.63, debug=True, profile='full') self.assertEqual(stop.tostring(), '<stop offset="50%" stop-color="red" stop-opacity="0.63" />')
def test_constructor1(self): stop = _GradientStop(offset=0.5, color='red', opacity=1.0, debug=True, profile='full') self.assertEqual(stop.tostring(), '<stop offset="0.5" stop-color="red" stop-opacity="1.0" />')