Skip to content
Snippets Groups Projects
Commit 63ffa056 authored by Bienchen's avatar Bienchen
Browse files

Merge branch 'documentation' into develop

parents 9a30f193 82adad8d
No related branches found
No related tags found
No related merge requests found
...@@ -535,10 +535,11 @@ sporting a single monolithic :file:`test_sidechains.py`. ...@@ -535,10 +535,11 @@ sporting a single monolithic :file:`test_sidechains.py`.
|python| code is evaluated using its own |python| code is evaluated using its own
:py_docs:`unit testing framework <library/unittest.html>` with a little help :py_docs:`unit testing framework <library/unittest.html>` with a little help
from |ost_s|_. The basic scheme is to import your module, subclass from |ost_s|_ (|C++| uses the |boost| `Test Library <http://www.boost.org/doc/libs/1_47_0/libs/test/doc/html/index.html>`_).
:class:`unittest.TestCase` and make the whole file runnable as script using the The basic scheme is to import your module, subclass :class:`unittest.TestCase`
most common |nameattr|_ attribute. A file :file:`tests/test_something.py` could and make the whole file runnable as script using the most common |nameattr|_
look like this, carrying a single test case: attribute. A file :file:`tests/test_something.py` could look like this,
carrying a single test case:
.. testcode:: promod3unittest .. testcode:: promod3unittest
:hide: :hide:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment