MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_getfuncsource_with_multine_string

Function test_getfuncsource_with_multine_string

testing/code/test_source.py:260–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258
259
260def 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
275def test_deindent() -> None:

Callers

nothing calls this directly

Calls 1

SourceClass · 0.90

Tested by

no test coverage detected