@pytest.mark.parametrize('durbin_watson_pvalue', [(- 1), 10, 4.1])
def test_check_residual_autocorrelation_must_pass_when_durbin_watson_value_is_between_0_and_4(self, linearity_validator_obj, durbin_watson_mock, durbin_watson_pvalue):
    'Given data,\n        When check_residual is called\n        after fitting the model\n        Should pass creating\n        0 < durbin_watson_value < 4'
    durbin_watson_mock.return_value = durbin_watson_pvalue
    assert (linearity_validator_obj.durbin_watson_value is None)
Given data,
When check_residual is called
after fitting the model
Should pass creating
0 < durbin_watson_value < 4
@pytest.mark.parametrize('durbin_watson_pvalue', [(- 1), 10, 4.1])
def test_check_residual_autocorrelation_must_pass_when_durbin_watson_value_is_between_0_and_4(self, linearity_validator_obj, durbin_watson_mock, durbin_watson_pvalue):
    'Given data,\n        When check_residual is called\n        after fitting the model\n        Should pass creating\n        0 < durbin_watson_value < 4'
    durbin_watson_mock.return_value = durbin_watson_pvalue
    assert (linearity_validator_obj.durbin_watson_value is None)