def test_apply_preprocessing_2(self): """ Unit test apply preprocessing 2 """ xpl = SmartExplainer() xpl.state = Mock() preprocessing = Mock() contributions = [1, 2, 3] xpl.apply_preprocessing(contributions, preprocessing) xpl.state.inverse_transform_contributions.assert_called()
def test_apply_preprocessing_1(self): """ Unit test apply preprocessing 1 """ xpl = SmartExplainer() contributions = [1, 2, 3] output = xpl.apply_preprocessing(contributions) expected = contributions self.assertListEqual(output, expected)