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

Method test_find_with_no_lang

Lib/test/test_gettext.py:900–903  ·  view source on GitHub ↗
(self, patch_expand_lang)

Source from the content-addressed store, hash-verified

898
899 @unittest.mock.patch('gettext._expand_lang')
900 def test_find_with_no_lang(self, patch_expand_lang):
901 # no language can be found
902 gettext.find('foo')
903 patch_expand_lang.assert_called_with('C')
904
905 @unittest.mock.patch('gettext._expand_lang')
906 def test_find_with_c(self, patch_expand_lang):

Callers

nothing calls this directly

Calls 2

assert_called_withMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected