예제 #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" />')