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

Method test_startswith_endswith_errors

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

Source from the content-addressed store, hash-verified

1676 result = format_string % 2.34
1677
1678 def test_startswith_endswith_errors(self):
1679 for meth in ('foo'.startswith, 'foo'.endswith):
1680 with self.assertRaises(TypeError) as cm:
1681 meth(['f'])
1682 exc = str(cm.exception)
1683 self.assertIn('str', exc)
1684 self.assertIn('tuple', exc)
1685
1686 @support.run_with_locale('LC_ALL', 'de_DE', 'fr_FR', '')
1687 def test_format_float(self):

Callers

nothing calls this directly

Calls 4

methFunction · 0.85
strFunction · 0.85
assertInMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected