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

Method test_istitle

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected