Source code for heat.tests.examples.test3
###
### the standard unittest-derived test
## http://darcs.idyll.org/~t/projects/nose-demo/simple/tests/test_stuff.py.html
###
import sys
import nose
import unittest
from nose.plugins.attrib import attr
# sets attribute on all test methods
@attr(tag=['example', 'unit'])
@attr(speed='fast')
[docs]class ExampleTest(unittest.TestCase):
[docs] def test_a(self):
self.assertEqual(1, 1)
[docs] def setUp(self):
print "test3 setup complete"
[docs] def tearDown(self):
print "test3 teardown complete"
if __name__ == '__main__':
sys.argv.append(__file__)
nose.main()