MCPcopy Create free account
hub / github.com/PyCQA/pyflakes / test_multipleDirectories

Method test_multipleDirectories

pyflakes/test/test_api.py:197–210  ·  view source on GitHub ↗

L{iterSourceCode} can be given multiple directories. It will recurse into each of them.

(self)

Source from the content-addressed store, hash-verified

195 ]))
196
197 def test_multipleDirectories(self):
198 """
199 L{iterSourceCode} can be given multiple directories. It will recurse
200 into each of them.
201 """
202 foopath = os.path.join(self.tempdir, 'foo')
203 barpath = os.path.join(self.tempdir, 'bar')
204 os.mkdir(foopath)
205 apath = self.makeEmptyFile('foo', 'a.py')
206 os.mkdir(barpath)
207 bpath = self.makeEmptyFile('bar', 'b.py')
208 self.assertEqual(
209 sorted(iterSourceCode([foopath, barpath])),
210 sorted([apath, bpath]))
211
212 def test_explicitFiles(self):
213 """

Callers

nothing calls this directly

Calls 2

makeEmptyFileMethod · 0.95
iterSourceCodeFunction · 0.90

Tested by

no test coverage detected