(self)
| 186 | class TestsPretty(unittest.TestCase): |
| 187 | |
| 188 | def test_super_repr(self): |
| 189 | # "<super: module_name.SA, None>" |
| 190 | output = pretty.pretty(super(SA)) |
| 191 | self.assertRegex(output, r"<super: \S+.SA, None>") |
| 192 | |
| 193 | # "<super: module_name.SA, <module_name.SB at 0x...>>" |
| 194 | sb = SB() |
| 195 | output = pretty.pretty(super(SA, sb)) |
| 196 | self.assertRegex(output, r"<super: \S+.SA,\s+<\S+.SB at 0x\S+>>") |
| 197 | |
| 198 | |
| 199 | def test_long_list(self): |