diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2015-12-19 21:54:29 -0500 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2015-12-19 21:54:29 -0500 |
commit | 1cb269131bc52f0b1a1e69cef0466f2d994d52a8 (patch) | |
tree | 25555820946f2d7a7eac9b242bb160a883e8b0ad /gerber/tests/test_common.py | |
parent | 2e2b4e49c3182cc7385f12d760222ecb57cc1356 (diff) | |
download | gerbonara-1cb269131bc52f0b1a1e69cef0466f2d994d52a8.tar.gz gerbonara-1cb269131bc52f0b1a1e69cef0466f2d994d52a8.tar.bz2 gerbonara-1cb269131bc52f0b1a1e69cef0466f2d994d52a8.zip |
Allow negative render of soldermask per #50
Update example code and rendering to show change
Diffstat (limited to 'gerber/tests/test_common.py')
-rw-r--r-- | gerber/tests/test_common.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gerber/tests/test_common.py b/gerber/tests/test_common.py index 7c66c0f..5991e5e 100644 --- a/gerber/tests/test_common.py +++ b/gerber/tests/test_common.py @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- # Author: Hamilton Kibbe <ham@hamiltonkib.be> +from ..exceptions import ParseError from ..common import read, loads from ..excellon import ExcellonFile from ..rs274x import GerberFile @@ -31,12 +32,12 @@ def test_load_from_string(): top_copper = loads(f.read()) assert_true(isinstance(ncdrill, ExcellonFile)) assert_true(isinstance(top_copper, GerberFile)) - + def test_file_type_validation(): """ Test file format validation """ - assert_raises(TypeError, read, 'LICENSE') + assert_raises(ParseError, read, 'LICENSE') |