Anonymous user
Automated testing: Difference between revisions
→Tests: An overview
imported>Jacquiesue |
imported>Jacquiesue |
||
Line 33:
self.assertEqual(35,
mysite.base.views.multiply(7, 5))
=== When a test fails ===
When a test fails you will see "FAILED" followed by the
test_name, along with the Traceback and the failure summary
at the end (e.g. FAILED (failures=2, errors=1, skipped=9))
To force a failure, maybe you are just curious to see what it will
look like, you can add: <code> self.assertTrue(False) </code>
to a test case that you are interested in running.
== Getting your local dev OpenHatch set up to run tests ==
|