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