Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def testGroup(self):
g = svg.group()
self.assertIsInstance(g, six.string_types)
g = svg.group(transform="translate(10,10)")
self.assertIn('transform="translate(10,10)"', g)
g = svg.group(transform="scale(10)")
assert 'transform="scale(10)"' in g
def testGroup(self):
g = svg.group()
self.assertIsInstance(g, six.string_types)
g = svg.group(transform="translate(10,10)")
self.assertIn('transform="translate(10,10)"', g)
g = svg.group(transform="scale(10)")
assert 'transform="scale(10)"' in g
def group(geometries, **kwargs):
'''
Add a list of geometries to a group.
Args:
geometries (Sequence): GeoJSON-like geometry dicts.
Returns:
str (unicode in Python 2) representation of the SVG group
'''
return svg.group([geometries(g, fill_rule="evenodd", **kwargs) for g in geometries])