def test_run_breusch_pagan_test(self, linearity_validator_obj, het_breuschpagan_mock):
    'Given heterokedastic data\n        When check_homokedasticity is called\n        Then must return false'
    linearity_validator_obj.run_breusch_pagan_test()
    assert (linearity_validator_obj.breusch_pagan_pvalue == 42)
    assert het_breuschpagan_mock.called
    assert (het_breuschpagan_mock.call_args_list == [call(linearity_validator_obj.fitted_result.resid, linearity_validator_obj.fitted_result.model.exog)])
Given heterokedastic data
When check_homokedasticity is called
Then must return false
def test_run_breusch_pagan_test(self, linearity_validator_obj, het_breuschpagan_mock):
    'Given heterokedastic data\n        When check_homokedasticity is called\n        Then must return false'
    linearity_validator_obj.run_breusch_pagan_test()
    assert (linearity_validator_obj.breusch_pagan_pvalue == 42)
    assert het_breuschpagan_mock.called
    assert (het_breuschpagan_mock.call_args_list == [call(linearity_validator_obj.fitted_result.resid, linearity_validator_obj.fitted_result.model.exog)])