If base.assert_lines_of_type() is called with line_types='regression' on a plot without a regression line, we would expect it to raise an AssertionError.
However, if we do this on a plot with only a one-to-one line, base.assert_lines_of_type() will raise a ValueError. This is because the method for determining if a regression line exist uses the xy-data for each line. One-to-one lines do not necessarily have specific xy-data.
We should rewrite this function to account for this case.