(self)
| 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)''') |
nothing calls this directly
no test coverage detected