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

Method test_mapping

Lib/test/test_locale.py:243–247  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

241 ('%(foo)s %%d' % {'foo': 'bar'}))
242
243 def test_mapping(self):
244 self.assertEqual(locale.format_string('%(foo)s bing.', {'foo': 'bar'}),
245 ('%(foo)s bing.' % {'foo': 'bar'}))
246 self.assertEqual(locale.format_string('%(foo)s', {'foo': 'bar'}),
247 ('%(foo)s' % {'foo': 'bar'}))
248
249
250

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
format_stringMethod · 0.45

Tested by

no test coverage detected