aboutsummaryrefslogtreecommitdiff
path: root/Tests/svgLib/path/path_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/svgLib/path/path_test.py')
-rw-r--r--Tests/svgLib/path/path_test.py24
1 files changed, 7 insertions, 17 deletions
diff --git a/Tests/svgLib/path/path_test.py b/Tests/svgLib/path/path_test.py
index caf351d4..0b82193d 100644
--- a/Tests/svgLib/path/path_test.py
+++ b/Tests/svgLib/path/path_test.py
@@ -24,18 +24,13 @@ EXPECTED_PEN_COMMANDS = [
("lineTo", ((100.0, 100.0),)),
("closePath", ()),
("moveTo", ((100.0, 200.0),)),
- ("curveTo", ((100.0, 100.0),
- (250.0, 100.0),
- (250.0, 200.0))),
- ("curveTo", ((250.0, 300.0),
- (400.0, 300.0),
- (400.0, 200.0))),
- ("endPath", ())
+ ("curveTo", ((100.0, 100.0), (250.0, 100.0), (250.0, 200.0))),
+ ("curveTo", ((250.0, 300.0), (400.0, 300.0), (400.0, 200.0))),
+ ("endPath", ()),
]
class SVGPathTest(object):
-
def test_from_svg_file(self):
pen = RecordingPen()
with NamedTemporaryFile(delete=False) as tmp:
@@ -57,8 +52,7 @@ class SVGPathTest(object):
def test_transform(self):
pen = RecordingPen()
- svg = SVGPath.fromstring(SVG_DATA,
- transform=(1.0, 0, 0, -1.0, 0, 1000))
+ svg = SVGPath.fromstring(SVG_DATA, transform=(1.0, 0, 0, -1.0, 0, 1000))
svg.draw(pen)
assert pen.value == [
@@ -68,11 +62,7 @@ class SVGPathTest(object):
("lineTo", ((100.0, 900.0),)),
("closePath", ()),
("moveTo", ((100.0, 800.0),)),
- ("curveTo", ((100.0, 900.0),
- (250.0, 900.0),
- (250.0, 800.0))),
- ("curveTo", ((250.0, 700.0),
- (400.0, 700.0),
- (400.0, 800.0))),
- ("endPath", ())
+ ("curveTo", ((100.0, 900.0), (250.0, 900.0), (250.0, 800.0))),
+ ("curveTo", ((250.0, 700.0), (400.0, 700.0), (400.0, 800.0))),
+ ("endPath", ()),
]