MCPcopy Create free account
hub / github.com/SplootCode/splootcode / testKwargs

Method testKwargs

python/tests/test_execute.py:385–393  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

383 self.assertEqual(f.read(), 'hello\n')
384
385 def testKwargs(self):
386 splootFile = splootFromPython('''print('hello', 'there', sep="--", end="END")''')
387 f = io.StringIO()
388 f.write = wrapStdout(f.write)
389 with contextlib.redirect_stdout(f):
390 executePythonFile(splootFile)
391
392 f.seek(0)
393 self.assertEqual(f.read(), "hello--thereEND")
394
395 def testMethodCall(self):
396 splootFile = splootFromPython('''x = 'hello'\nx = x.replace('lo', 'LO')\nprint(x)''')

Callers

nothing calls this directly

Calls 4

splootFromPythonFunction · 0.90
wrapStdoutFunction · 0.90
executePythonFileFunction · 0.90
readMethod · 0.80

Tested by

no test coverage detected