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

Method test_mixed_cmp

Lib/test/test_userstring.py:118–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 self.assertIs(type(u), UserStringSubclass)
117
118 def test_mixed_cmp(self):
119 a = self.fixtype('ab')
120 self._assert_cmp(a, 'ab', 0)
121 self._assert_cmp(a, 'a', 1)
122 self._assert_cmp(a, 'ac', -1)
123
124 def test_rmod(self):
125 class ustr2(UserString):

Callers

nothing calls this directly

Calls 2

fixtypeMethod · 0.45
_assert_cmpMethod · 0.45

Tested by

no test coverage detected