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

Method test_isspace

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected