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

Method test_isspace

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

Source from the content-addressed store, hash-verified

739 self.assertFalse(ch.istitle(), '{!a} is not title'.format(ch))
740
741 def test_isspace(self):
742 super().test_isspace()
743 self.checkequalnofix(True, '\u2000', 'isspace')
744 self.checkequalnofix(True, '\u200a', 'isspace')
745 self.checkequalnofix(False, '\u2014', 'isspace')
746 # There are no non-BMP whitespace chars as of Unicode 12.
747 for ch in ['\U00010401', '\U00010427', '\U00010429', '\U0001044E',
748 '\U0001F40D', '\U0001F46F']:
749 self.assertFalse(ch.isspace(), '{!a} is not space.'.format(ch))
750
751 @support.requires_resource('cpu')
752 def test_isspace_invariant(self):

Callers

nothing calls this directly

Calls 5

checkequalnofixMethod · 0.95
superClass · 0.85
assertFalseMethod · 0.80
isspaceMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected