Message98853
For your purpose indeed assertTrue() is not appropriate, however assertEqual(x, True) works for several different x, including 1.0 or 1.
Also assertRaises can be used as a context manager on 2.7 too. |
|
Date |
User |
Action |
Args |
2010-02-04 20:15:09 | ezio.melotti | set | recipients:
+ ezio.melotti, theller, dino.viehland, michael.foord, brian.curtin |
2010-02-04 20:15:09 | ezio.melotti | set | messageid: <1265314509.37.0.639147660186.issue7855@psf.upfronthosting.co.za> |
2010-02-04 20:15:08 | ezio.melotti | link | issue7855 messages |
2010-02-04 20:15:08 | ezio.melotti | create | |
|