MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_upper

Method test_upper

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

Source from the content-addressed store, hash-verified

409 self.checkraises(TypeError, 'hello', 'lower', 42)
410
411 def test_upper(self):
412 self.checkequal('HELLO', 'HeLLo', 'upper')
413 self.checkequal('HELLO', 'HELLO', 'upper')
414 self.checkraises(TypeError, 'hello', 'upper', 42)
415
416 def test_expandtabs(self):
417 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