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

Method test_istitle

Lib/test/test_str.py:722–732  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

720 self.assertFalse('\U0001F46F'.isupper())
721
722 def test_istitle(self):
723 super().test_istitle()
724 self.checkequalnofix(True, '\u1FFc', 'istitle')
725 self.checkequalnofix(True, 'Greek \u1FFcitlecases ...', 'istitle')
726
727 # non-BMP, uppercase + lowercase
728 self.assertTrue('\U00010401\U00010429'.istitle())
729 self.assertTrue('\U00010427\U0001044E'.istitle())
730 # apparently there are no titlecased (Lt) non-BMP chars in Unicode 6
731 for ch in ['\U00010429', '\U0001044E', '\U0001F40D', '\U0001F46F']:
732 self.assertFalse(ch.istitle(), '{!a} is not title'.format(ch))
733
734 def test_isspace(self):
735 super().test_isspace()

Callers

nothing calls this directly

Calls 6

checkequalnofixMethod · 0.95
superClass · 0.85
assertTrueMethod · 0.80
assertFalseMethod · 0.80
istitleMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected