Example #1
0
def test_svg():
    e1 = Ellipse(Point(1, 0), 3, 2)
    assert e1._svg(
        2, "#FFAAFF"
    ) == '<ellipse fill="#FFAAFF" stroke="#555555" stroke-width="4.0" opacity="0.6" cx="1.00000000000000" cy="0" rx="3.00000000000000" ry="2.00000000000000"/>'