diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-12-20 22:15:44 -0200 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-12-20 22:15:44 -0200 |
commit | d1598b46c91ee36719460d49d7ba2ed5ecd0ef45 (patch) | |
tree | 7e107cc196fade05719f0cc6a659f6f17f6a3b3b /gerber/tests/test_common.py | |
parent | 2e2b4e49c3182cc7385f12d760222ecb57cc1356 (diff) | |
parent | 163a0cd531c667ec666108562eb2dbec28ce6125 (diff) | |
download | gerbonara-d1598b46c91ee36719460d49d7ba2ed5ecd0ef45.tar.gz gerbonara-d1598b46c91ee36719460d49d7ba2ed5ecd0ef45.tar.bz2 gerbonara-d1598b46c91ee36719460d49d7ba2ed5ecd0ef45.zip |
Merge pull request #52 from curtacircuitos/negative_soldermask
Allow negative solder mask rendering per #50.
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') |