Examples

Exhibit 0: Failing Code Block

The following code block will be tested and raise an error:

one = 1
assert(one == 2)

Exhibit 1: Passing Code Block

The following code block will be tested and will not raise an error:

one = 1
assert(one == 1)

Exhibit 2: Ignored Code Block

The following code block will NOT be tested:

one = 1
assert(one == 2)

The block above is not tested because it has the no-test comment before it. If you were to look at the raw RST of the code-block above, it would look like:

..
    no-test

.. code-block...