Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_text():
fig = Figure("5cm", "5cm",
Text('lion')
)
txt = fig.root.find(SVG+'text')
ok_(txt.text=='lion')