Skip a test unless the condition is true.
(condition, reason)
| 188 | return _id |
| 189 | |
| 190 | def skipUnless(condition, reason): |
| 191 | """ |
| 192 | Skip a test unless the condition is true. |
| 193 | """ |
| 194 | if not condition: |
| 195 | return skip(reason) |
| 196 | return _id |
| 197 | |
| 198 | def expectedFailure(test_item): |
| 199 | test_item.__unittest_expecting_failure__ = True |