Ejemplo n.º 1
0
 def test_set_value(self):
     a = AnimateMotion(debug=True)
     a.set_value('m 0 0', 'linear', '0', 'auto')
     self.assertEqual(a.tostring(),
                      '<animateMotion calcMode="linear" ' \
                      'keyPoints="0" path="m 0 0" '\
                      'rotate="auto" />')
Ejemplo n.º 2
0
 def test_set_value(self):
     a = AnimateMotion(debug=True)
     a.set_value('m 0 0', 'linear', '0', 'auto')
     self.assertEqual(a.tostring(),
                      '<animateMotion calcMode="linear" ' \
                      'keyPoints="0" path="m 0 0" '\
                      'rotate="auto" />')
Ejemplo n.º 3
0
 def test_init_with_path(self):
     s = AnimateMotion('m 0 0', debug=True)
     self.assertEqual(s.tostring(), '<animateMotion path="m 0 0" />')
Ejemplo n.º 4
0
 def test_freeze(self):
     s = AnimateMotion(debug=True)
     s.freeze()
     self.assertEqual(s.tostring(), '<animateMotion fill="freeze" />')
Ejemplo n.º 5
0
 def test_freeze(self):
     s = AnimateMotion(debug=True)
     s.freeze()
     self.assertEqual(s.tostring(), '<animateMotion fill="freeze" />')
Ejemplo n.º 6
0
 def test_init_with_path(self):
     s = AnimateMotion('m 0 0', debug=True)
     self.assertEqual(s.tostring(), '<animateMotion path="m 0 0" />')