def test_oddAndEven(self):
    '\n        L{static.DirectoryLister} gives an alternate class for each odd and\n        even rows in the table.\n        '
    lister = static.DirectoryLister(None)
    elements = [{'href': '', 'text': '', 'size': '', 'type': '', 'encoding': ''} for i in range(5)]
    content = lister._buildTableContent(elements)
    self.assertEqual(len(content), 5)
    self.assertTrue(content[0].startswith('<tr class="odd">'))
    self.assertTrue(content[1].startswith('<tr class="even">'))
    self.assertTrue(content[2].startswith('<tr class="odd">'))
    self.assertTrue(content[3].startswith('<tr class="even">'))
    self.assertTrue(content[4].startswith('<tr class="odd">'))
L{static.DirectoryLister} gives an alternate class for each odd and
even rows in the table.
def test_oddAndEven(self):
    '\n        L{static.DirectoryLister} gives an alternate class for each odd and\n        even rows in the table.\n        '
    lister = static.DirectoryLister(None)
    elements = [{'href': , 'text': , 'size': , 'type': , 'encoding': } for i in range(5)]
    content = lister._buildTableContent(elements)
    self.assertEqual(len(content), 5)
    self.assertTrue(content[0].startswith('<tr class="odd">'))
    self.assertTrue(content[1].startswith('<tr class="even">'))
    self.assertTrue(content[2].startswith('<tr class="odd">'))
    self.assertTrue(content[3].startswith('<tr class="even">'))
    self.assertTrue(content[4].startswith('<tr class="odd">'))