Пример #1
0
 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" />')
Пример #2
0
 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" />')
Пример #3
0
 def test_constructor3(self):
     stop = _GradientStop(debug=True, profile='full')
     self.assertEqual(stop.tostring(), '<stop />')
Пример #4
0
 def test_constructor3(self):
     stop = _GradientStop(debug=True, profile='full')
     self.assertEqual(stop.tostring(), '<stop />')
Пример #5
0
 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" />')
Пример #6
0
 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" />')