This article was originally published by Python Magazine in
March of 2008.
Automated Testing with unittest and Proctor
Listing3.py
#!/usr/bin/env python
# The tests in this module are ignored by Proctor
import unittest
# Tell Proctor to ignore the tests in this module.
__proctor_ignore_module__ = True
class IgnoredTest(unittest.TestCase):
def testShouldNotBeRun(self):
self.fail('This test will not be run by Proctor')
return
if __name__ == '__main__':
# If this file is run directly, the tests are still executed.
unittest.main()