Edgewall Software

Changes between Version 6 and Version 7 of TracDev/WritingUnitTests


Ignore:
Timestamp:
Sep 25, 2014, 6:17:19 PM (10 years ago)
Author:
Jun Omae
Comment:

Note for setUpClass and tearDownClass

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/WritingUnitTests

    v6 v7  
    6565You can use several test methods within a `TestCase` class; they need to start with `test`. When you use method `setUp` it will be executed for each test method. If you only want to "set up" your test environment once of your test case, you need to use class method `setUpClass`.
    6666
     67Note that `setUpClass` and `tearDownClass` are available since Python 2.7.
     68
    6769For example:
    6870{{{#!py