示例#1
0
 def test_rollup_negative(self, MockPullReqState):
     state = MockPullReqState()
     action.rollup(state, 'rollup-')
     self.assertFalse(state.rollup)
     state.save.assert_called_once_with()
示例#2
0
 def test_rollup_positive(self, MockPullReqState):
     state = MockPullReqState()
     action.rollup(state, 'rollup')
     self.assertTrue(state.rollup)
     state.save.assert_called_once_with()