def test_line_count_error_negative(self):
     with pytest.raises(ValueError) as exc:
         ld.line_count(self.lines, error=-10)
     assert exc.value.message == "Error value must be positive " \
                                 "(0 included)."
 def test_line_count_good(self):
     result = ld.line_count(self.lines)
     assert len(result) == 3 and result[0] >= 0 and result[1] >= 0 and \
            result[2] >= 0 and result[0] == result[1] + result[2]
 def test_line_count_lines_none(self):
     with pytest.raises(ValueError) as exc:
         ld.line_count(None)
     assert exc.value.message == "Lines can't be None."
 def test_line_count_single_line(self):
     line = self.lines[0][0]
     result = ld.line_count(line)
     assert result[0] == 1 and result[1] >= 0 and \
            result[2] >= 0 and result[0] == result[1] + result[2]