def test_rollup_negative(self, MockPullReqState): state = MockPullReqState() action.rollup(state, 'rollup-') self.assertFalse(state.rollup) state.save.assert_called_once_with()
def test_rollup_positive(self, MockPullReqState): state = MockPullReqState() action.rollup(state, 'rollup') self.assertTrue(state.rollup) state.save.assert_called_once_with()