()
| 258 | |
| 259 | |
| 260 | def test_getfuncsource_with_multine_string() -> None: |
| 261 | def f(): |
| 262 | c = """while True: |
| 263 | pass |
| 264 | """ |
| 265 | |
| 266 | expected = '''\ |
| 267 | def f(): |
| 268 | c = """while True: |
| 269 | pass |
| 270 | """ |
| 271 | ''' |
| 272 | assert str(Source(f)) == expected.rstrip() |
| 273 | |
| 274 | |
| 275 | def test_deindent() -> None: |