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

Method test_curdir

Lib/idlelib/idle_test/test_grep.py:57–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 self.assertIn('invalid', s.getvalue())
56
57 def test_curdir(self):
58 # Test os.curdir.
59 ff = grep.findfiles
60 save_cwd = os.getcwd()
61 os.chdir(self.path)
62 filename = 'test_grep.py'
63 filelist = list(ff(os.curdir, filename, False))
64 self.assertIn(os.path.join(os.curdir, filename), filelist)
65 os.chdir(save_cwd)
66
67 def test_base(self):
68 ff = grep.findfiles

Callers

nothing calls this directly

Calls 4

listClass · 0.85
ffFunction · 0.85
assertInMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected