示例#1
0
文件: test_api.py 项目: manlucas/atom
    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)
示例#2
0
def pause_activity(act_id):
    return api.pause_node_appointment(act_id)