Example #1
0
 def setUp(self):
     self.ma = SVGMultiAttribute({
         '*':
         SVGAttribute('x',
                      anim=True,
                      types=frozenset(['coordinate']),
                      const=frozenset(['star'])),
         'text tref tspan':
         SVGAttribute('x',
                      anim=False,
                      types=frozenset(['list-of-coordinate']),
                      const=frozenset(['text']))
     })
Example #2
0
 def test_no_default(self):
     ma = SVGMultiAttribute({
         'a':
         SVGAttribute('x',
                      anim=True,
                      types=frozenset(['coordinate']),
                      const=frozenset(['star'])),
         'b':
         SVGAttribute('x',
                      anim=False,
                      types=frozenset(['list-of-coordinate']),
                      const=frozenset(['text']))
     })
     self.assertTrue('coordinate' in ma.get_types('c'))