()
| 64 | |
| 65 | |
| 66 | def test_find_file_decorated1(): |
| 67 | |
| 68 | @decorator |
| 69 | def noop1(f): |
| 70 | def wrapper(*a, **kw): |
| 71 | return f(*a, **kw) |
| 72 | return wrapper |
| 73 | |
| 74 | @noop1 |
| 75 | def f(x): |
| 76 | "My docstring" |
| 77 | |
| 78 | match_pyfiles(oinspect.find_file(f), os.path.abspath(__file__)) |
| 79 | nt.assert_equal(f.__doc__, "My docstring") |
| 80 | |
| 81 | |
| 82 | def test_find_file_decorated2(): |
nothing calls this directly
no test coverage detected