()
| 41 | |
| 42 | |
| 43 | def test_source_from_method() -> None: |
| 44 | class TestClass: |
| 45 | def test_method(self): |
| 46 | pass |
| 47 | |
| 48 | source = Source(TestClass().test_method) |
| 49 | assert source.lines == ["def test_method(self):", " pass"] |
| 50 | |
| 51 | |
| 52 | def test_source_from_lines() -> None: |