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

Method test_find_with_c

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

Source from the content-addressed store, hash-verified

904
905 @unittest.mock.patch('gettext._expand_lang')
906 def test_find_with_c(self, patch_expand_lang):
907 # 'C' is already in languages
908 self.env.set('LANGUAGE', 'C')
909 gettext.find('foo')
910 patch_expand_lang.assert_called_with('C')
911
912 def test_find_all(self):
913 # test that all are returned when all is set

Callers

nothing calls this directly

Calls 3

assert_called_withMethod · 0.80
setMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected