Example #1
0
 def test_inherit_from_pattern(self):
     parent = Pattern(id='test')
     pattern = Pattern(insert=(10, 20), size=(30, 40), inherit=parent,
                       debug=True, profile='full')
     self.assertEqual(
         pattern.tostring(),
         '<pattern height="40" width="30" x="10" xlink:href="#test" y="20" />')
Example #2
0
 def test_inherit_from_pattern(self):
     parent = Pattern(id='test')
     pattern = Pattern(insert=(10, 20), size=(30, 40), inherit=parent,
                       debug=True, profile='full')
     self.assertEqual(
         pattern.tostring(),
         '<pattern height="40" width="30" x="10" xlink:href="#test" y="20" />')
Example #3
0
 def test_constructor(self):
     pattern = Pattern(insert=(10, 20),
                       size=(30, 40),
                       inherit='#test',
                       debug=True,
                       profile='full')
     self.assertEqual(
         pattern.tostring(),
         '<pattern height="40" width="30" x="10" xlink:href="#test" y="20" />'
     )
Example #4
0
 def test_constructor(self):
     pattern = Pattern(insert=(10, 20), size=(30, 40), inherit='#test',
                       debug=True, profile='full')
     self.assertEqual(
         pattern.tostring(),
         '<pattern height="40" width="30" x="10" xlink:href="#test" y="20" />')