(self)
| 2127 | self.assertIn("L1:", output.getvalue()) |
| 2128 | |
| 2129 | def test_is_op_format(self): |
| 2130 | output = io.StringIO() |
| 2131 | dis.dis("a is b", file=output, show_caches=True) |
| 2132 | self.assertIn("IS_OP 0 (is)", output.getvalue()) |
| 2133 | |
| 2134 | output = io.StringIO() |
| 2135 | dis.dis("a is not b", file=output, show_caches=True) |
| 2136 | self.assertIn("IS_OP 1 (is not)", output.getvalue()) |
| 2137 | |
| 2138 | def test_contains_op_format(self): |
| 2139 | output = io.StringIO() |