summaryrefslogtreecommitdiff
path: root/gerber/tests/test_rs274x.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/tests/test_rs274x.py')
-rw-r--r--gerber/tests/test_rs274x.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gerber/tests/test_rs274x.py b/gerber/tests/test_rs274x.py
index a3d20ed..c084e80 100644
--- a/gerber/tests/test_rs274x.py
+++ b/gerber/tests/test_rs274x.py
@@ -11,11 +11,19 @@ from .tests import *
TOP_COPPER_FILE = os.path.join(os.path.dirname(__file__),
'resources/top_copper.GTL')
+MULTILINE_READ_FILE = os.path.join(os.path.dirname(__file__),
+ 'resources/multiline_read.ger')
+
def test_read():
top_copper = read(TOP_COPPER_FILE)
assert(isinstance(top_copper, GerberFile))
+def test_multiline_read():
+ multiline = read(MULTILINE_READ_FILE)
+ assert(isinstance(multiline, GerberFile))
+ assert_equal(10, len(multiline.statements))
+
def test_comments_parameter():
top_copper = read(TOP_COPPER_FILE)
assert_equal(top_copper.comments[0], 'This is a comment,:')