diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-07-17 13:14:54 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-07-17 13:14:54 +0800 |
commit | f0585baefa54c5cd891ba04c81053956b1a59977 (patch) | |
tree | 790b776eff169d73700fdd89d2e51bd586e01261 /gerber/tests/test_primitives.py | |
parent | 0dded38353e1d650458f6401aea37a4aadaf28ff (diff) | |
download | gerbonara-f0585baefa54c5cd891ba04c81053956b1a59977.tar.gz gerbonara-f0585baefa54c5cd891ba04c81053956b1a59977.tar.bz2 gerbonara-f0585baefa54c5cd891ba04c81053956b1a59977.zip |
Create first test that renders and validates the the rendered PNG is correct.
Diffstat (limited to 'gerber/tests/test_primitives.py')
-rw-r--r-- | gerber/tests/test_primitives.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gerber/tests/test_primitives.py b/gerber/tests/test_primitives.py index 0f13a80..a88497c 100644 --- a/gerber/tests/test_primitives.py +++ b/gerber/tests/test_primitives.py @@ -9,10 +9,18 @@ from operator import add def test_primitive_smoketest(): p = Primitive() - assert_raises(NotImplementedError, p.bounding_box) + try: + p.bounding_box + assert_false(True, 'should have thrown the exception') + except NotImplementedError: + pass p.to_metric() p.to_inch() - p.offset(1, 1) + try: + p.offset(1, 1) + assert_false(True, 'should have thrown the exception') + except NotImplementedError: + pass def test_line_angle(): """ Test Line primitive angle calculation |