MCPcopy Create free account
hub / github.com/ipython/ipython / test_super_repr

Method test_super_repr

IPython/lib/tests/test_pretty.py:188–196  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

186class 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):

Callers

nothing calls this directly

Calls 2

SBClass · 0.85
prettyMethod · 0.80

Tested by

no test coverage detected