def test_reader_contains_lines_with_same_elements(self): dr = DelimitedReader(self.norm_lines) first_element = dr.next() for l in dr: gt_(len(l), 1) eq_(len(l), len(first_element))
def test_reader_can_read_file(self): dr = DelimitedReader(None, skip_comments = True, comment_char = "#") dr.read_file(self.norm_file) eq_(len(dr), self.EXPECTED_LINES)