def test_rows_are_not_split_if_there_are_headers(self):
    output = self._add_long_step_and_save('html')
    with ETSource('\n'.join(output.splitlines()[1:])) as source:
        tree = ET.parse(source)
    lines = tree.findall('body/table/tr')
    assert_equal(len(lines), 3)
    for l in lines:
        cols = (l.findall('td') or l.findall('th'))
        assert_equal(len(cols), 9)
def test_rows_are_not_split_if_there_are_headers(self):
    output = self._add_long_step_and_save('html')
    with ETSource('\n'.join(output.splitlines()[1:])) as source:
        tree = ET.parse(source)
    lines = tree.findall('body/table/tr')
    assert_equal(len(lines), 3)
    for l in lines:
        cols = (l.findall('td') or l.findall('th'))
        assert_equal(len(cols), 9)