awips2/pythonPackages/nose/unit_tests/test_issue_100.rst

13 lines
373 B
ReStructuredText
Raw Normal View History

This is a test of the bug reported in issue 100: test.address() fails
for a case defined in a doctest.
>>> import unittest
>>> import nose.case
>>> class SimpleTest(unittest.TestCase):
...
... def runTest(self):
... pass
>>> test = nose.case.Test(SimpleTest())
>>> test.address()
(None, '__builtin__', 'SimpleTest.runTest')