(self)
| 271 | ''') |
| 272 | |
| 273 | def testDict(self): |
| 274 | splootFile = splootFromPython('''d = {"hello": "hallo"} |
| 275 | print(d) |
| 276 | print(d["hello"]) |
| 277 | ''') |
| 278 | |
| 279 | f = io.StringIO() |
| 280 | f.write = wrapStdout(f.write) |
| 281 | with contextlib.redirect_stdout(f): |
| 282 | executePythonFile(splootFile) |
| 283 | |
| 284 | f.seek(0) |
| 285 | self.assertEqual(f.read(), "{'hello': 'hallo'}\nhallo\n") |
| 286 | |
| 287 | def testMemberExpression(self): |
| 288 | splootFile = splootFromPython('''d = 12 |
nothing calls this directly
no test coverage detected