Esempio n. 1
0
 def test_add_subelement(self):
     clip_path = ClipPath(debug=True, profile="full")
     clip_path.add(Circle((50, 60), 70))
     self.assertEqual(clip_path.tostring(), '<clipPath><circle cx="50" cy="60" r="70" /></clipPath>')
Esempio n. 2
0
 def test_transform(self):
     clip_path = ClipPath(debug=True, profile="full")
     clip_path.translate(10, 20)
     self.assertEqual(clip_path.tostring(), '<clipPath transform="translate(10,20)" />')
Esempio n. 3
0
 def test_constructor(self):
     clip_path = ClipPath(debug=True, profile="full")
     self.assertEqual(clip_path.tostring(), "<clipPath />")
Esempio n. 4
0
 def test_add_subelement(self):
     clip_path = ClipPath(debug=True, profile='full')
     clip_path.add(Circle((50,60), 70))
     self.assertEqual(clip_path.tostring(), '<clipPath><circle cx="50" cy="60" r="70" /></clipPath>')
Esempio n. 5
0
 def test_transform(self):
     clip_path = ClipPath(debug=True, profile='full')
     clip_path.translate(10, 20)
     self.assertEqual(clip_path.tostring(), '<clipPath transform="translate(10,20)" />')
Esempio n. 6
0
 def test_constructor(self):
     clip_path = ClipPath(debug=True, profile='full')
     self.assertEqual(clip_path.tostring(), '<clipPath />')