MCPcopy Index your code
hub / github.com/python/cpython / test_overridden_str_format

Method test_overridden_str_format

Lib/test/test_enum.py:664–667  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

662 self.assertEqual(format(NS.first), NS.first.name.upper())
663
664 def test_overridden_str_format(self):
665 NSF = self.NewStrFormatEnum
666 self.assertEqual(str(NSF.first), NSF.first.name.title())
667 self.assertEqual(format(NSF.first), ''.join(reversed(NSF.first.name)))
668
669 def test_overridden_str_format_inherited(self):
670 NSE = self.NewSubEnum

Callers

nothing calls this directly

Calls 5

strFunction · 0.85
formatFunction · 0.85
assertEqualMethod · 0.45
titleMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected