L{iterSourceCode} can be given multiple directories. It will recurse into each of them.
(self)
| 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 | """ |
nothing calls this directly
no test coverage detected