Exemplo n.º 1
0
 def test_rollup_negative(self, MockPullReqState):
     state = MockPullReqState()
     action.rollup(state, 'rollup-')
     self.assertFalse(state.rollup)
     state.save.assert_called_once_with()
Exemplo n.º 2
0
 def test_rollup_positive(self, MockPullReqState):
     state = MockPullReqState()
     action.rollup(state, 'rollup')
     self.assertTrue(state.rollup)
     state.save.assert_called_once_with()