874
edits
(added docs for unit-test module) |
(→Test Runner Objects: added assert() docs) |
||
| Line 186: | Line 186: | ||
Marks a test as failing due to the given exception having been thrown. This can be put in a <tt>catch</tt> clause. | Marks a test as failing due to the given exception having been thrown. This can be put in a <tt>catch</tt> clause. | ||
<tt>test.'''assert'''(''a''[, ''message''])</tt> | |||
Ensures that ''a'' has a truthy value. A test is marked as passing or failing depending on the result, logging ''message'' with it. | |||
<tt>test.'''assertEqual'''(''a'', ''b''[, ''message''])</tt> | <tt>test.'''assertEqual'''(''a'', ''b''[, ''message''])</tt> | ||
edits