Commit 90822c1a authored by Guilhem Saurel's avatar Guilhem Saurel

[Tests] test error_out & dgpyError

parent 55f0cd7a
# Test bindings
ADD_PYTHON_UNIT_TEST("test-bindings" "unitTesting/test_bindings.py" src)
# Test the interpreter
SET(EXECUTABLE_NAME interpreter-test)
ADD_EXECUTABLE(${EXECUTABLE_NAME} interpreter-test.cc)
......
import unittest
import dynamic_graph
class BindingsTests(unittest.TestCase):
def test_bindings(self):
with self.assertRaises(Exception) as error:
dynamic_graph.error_out()
self.assertEqual(str(error), "something bad happend")
if __name__ == '__main__':
unittest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment