Exemple #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" />')
Exemple #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" />')
Exemple #3
0
 def test_init_with_path(self):
     s = AnimateMotion('m 0 0', debug=True)
     self.assertEqual(s.tostring(), '<animateMotion path="m 0 0" />')
Exemple #4
0
 def test_freeze(self):
     s = AnimateMotion(debug=True)
     s.freeze()
     self.assertEqual(s.tostring(), '<animateMotion fill="freeze" />')
Exemple #5
0
 def test_freeze(self):
     s = AnimateMotion(debug=True)
     s.freeze()
     self.assertEqual(s.tostring(), '<animateMotion fill="freeze" />')
Exemple #6
0
 def test_init_with_path(self):
     s = AnimateMotion('m 0 0', debug=True)
     self.assertEqual(s.tostring(), '<animateMotion path="m 0 0" />')