Beispiel #1
0
    def test_pause_node_appointment(self):
        act_result = api.pause_node_appointment(self.node_id)

        self.assertTrue(act_result.result)

        Status.objects.transit.assert_called_once_with(
            id=self.node_id, to_state=states.SUSPENDED, appoint=True)
Beispiel #2
0
def pause_activity(act_id):
    return api.pause_node_appointment(act_id)