(self, spec, old_file_text)
| 177 | class TestAstEdits(test_util.TensorFlowTestCase): |
| 178 | |
| 179 | def _upgrade(self, spec, old_file_text): |
| 180 | in_file = six.StringIO(old_file_text) |
| 181 | out_file = six.StringIO() |
| 182 | upgrader = ast_edits.ASTCodeUpgrader(spec) |
| 183 | count, report, errors = ( |
| 184 | upgrader.process_opened_file("test.py", in_file, |
| 185 | "test_out.py", out_file)) |
| 186 | return (count, report, errors), out_file.getvalue() |
| 187 | |
| 188 | def testModuleDeprecation(self): |
| 189 | text = "a.b.c(a.b.x)" |
no test coverage detected