MCPcopy Index your code
hub / github.com/python/cpython / test_many

Method test_many

Lib/test/test_tempfile.py:173–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

171 self.nameCheck(s, '', '', '')
172
173 def test_many(self):
174 # _RandomNameSequence returns no duplicate strings (stochastic)
175
176 dict = {}
177 r = self.r
178 for i in range(TEST_FILES):
179 s = next(r)
180 self.nameCheck(s, '', '', '')
181 self.assertNotIn(s, dict)
182 dict[s] = 1
183
184 def supports_iter(self):
185 # _RandomNameSequence supports the iterator protocol

Callers

nothing calls this directly

Calls 2

nameCheckMethod · 0.80
assertNotInMethod · 0.80

Tested by

no test coverage detected