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

Method test_upper

Lib/test/string_tests.py:456–459  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

454 self.checkraises(TypeError, 'hello', 'lower', 42)
455
456 def test_upper(self):
457 self.checkequal('HELLO', 'HeLLo', 'upper')
458 self.checkequal('HELLO', 'HELLO', 'upper')
459 self.checkraises(TypeError, 'hello', 'upper', 42)
460
461 def test_expandtabs(self):
462 self.checkequal('abc\rab def\ng hi', 'abc\rab\tdef\ng\thi',

Callers

nothing calls this directly

Calls 2

checkequalMethod · 0.95
checkraisesMethod · 0.95

Tested by

no test coverage detected