def test_ordinary_least_squares_linear_regression_must_pass_float_when_given_correct_data(self, ordinary_least_squares_regression_mock, add_constant_mock, linearity_validator_obj):
    'Given concentration values = float\n        The ordinary_least_squares_linear_regression\n        Then must set properties'
    linearity_validator_obj.ordinary_least_squares_linear_regression()
    assert (linearity_validator_obj.fitted_result == ordinary_least_squares_regression_mock.return_value.fit.return_value)
    assert ordinary_least_squares_regression_mock.called
    assert (ordinary_least_squares_regression_mock.call_args_list == [call(linearity_validator_obj.analytical_data, add_constant_mock.return_value)])
    assert add_constant_mock.called
    assert (add_constant_mock.call_args_list == [call(linearity_validator_obj.concentration_data)])
Given concentration values = float
The ordinary_least_squares_linear_regression
Then must set properties
def test_ordinary_least_squares_linear_regression_must_pass_float_when_given_correct_data(self, ordinary_least_squares_regression_mock, add_constant_mock, linearity_validator_obj):
    'Given concentration values = float\n        The ordinary_least_squares_linear_regression\n        Then must set properties'
    linearity_validator_obj.ordinary_least_squares_linear_regression()
    assert (linearity_validator_obj.fitted_result == ordinary_least_squares_regression_mock.return_value.fit.return_value)
    assert ordinary_least_squares_regression_mock.called
    assert (ordinary_least_squares_regression_mock.call_args_list == [call(linearity_validator_obj.analytical_data, add_constant_mock.return_value)])
    assert add_constant_mock.called
    assert (add_constant_mock.call_args_list == [call(linearity_validator_obj.concentration_data)])