summaryrefslogtreecommitdiff
path: root/unit_tests/test_issue_100.rst
blob: ea5d9d1f165b80126118ebf72e0638b8fe43b327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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')