'L{static.DirectoryLister} takes an optional C{dirs} argument that
filter out the list of directories and files printed.'

def test_renderFiltered(self):

    path = FilePath(self.mktemp())
    path.makedirs()
    path.child('dir1').makedirs()
    path.child('dir2').makedirs()
    path.child('dir3').makedirs()
    lister = static.DirectoryLister(path.path, dirs=['dir1', 'dir3'])
    data = lister.render(self._request('foo'))
    body = '<tr    class="odd">\n                <td><a    href="dir1/">dir1/</a></td>\n                <td></td>\n                <td>[Directory]</td>\n                <td></td>\n</tr>\n<tr    class="even">\n                <td><a    href="dir3/">dir3/</a></td>\n                <td></td>\n                <td>[Directory]</td>\n                <td></td>\n</tr>'
    self.assertIn(body, data)
