summaryrefslogtreecommitdiff
path: root/gerber/tests/test_excellon.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2015-01-25 14:19:48 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2015-01-25 14:19:48 -0500
commitb495d51354eff7b858dbbd41740865eba7f39100 (patch)
tree4e418b6d508b4390354231d5f5c7360142b2b783 /gerber/tests/test_excellon.py
parentd5157c1d076360e3702a910f119b9fc44ff76df5 (diff)
downloadgerbonara-b495d51354eff7b858dbbd41740865eba7f39100.tar.gz
gerbonara-b495d51354eff7b858dbbd41740865eba7f39100.tar.bz2
gerbonara-b495d51354eff7b858dbbd41740865eba7f39100.zip
Changed zeros/zero suppression conventions to match file format specs
Diffstat (limited to 'gerber/tests/test_excellon.py')
-rw-r--r--gerber/tests/test_excellon.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/gerber/tests/test_excellon.py b/gerber/tests/test_excellon.py
index 72e3d7d..70e4560 100644
--- a/gerber/tests/test_excellon.py
+++ b/gerber/tests/test_excellon.py
@@ -15,18 +15,13 @@ def test_format_detection():
"""
settings = detect_excellon_format(NCDRILL_FILE)
assert_equal(settings['format'], (2, 4))
- assert_equal(settings['zero_suppression'], 'leading')
+ assert_equal(settings['zeros'], 'trailing')
def test_read():
ncdrill = read(NCDRILL_FILE)
assert(isinstance(ncdrill, ExcellonFile))
-
+
def test_read_settings():
ncdrill = read(NCDRILL_FILE)
- assert_equal(ncdrill.settings.format, (2, 4))
- assert_equal(ncdrill.settings.zero_suppression, 'leading')
-
-
-
-
-
+ assert_equal(ncdrill.settings['format'], (2, 4))
+ assert_equal(ncdrill.settings['zeros'], 'trailing')