def test_after_object_save_object(self): DbProcessingFactory.after_object(self.wfe, self.tokens, self.tokens[0]) assert self.tokens[0].save.call_count == 1 assert self.tokens[0].save.call_args_list[0][1][ 'status'] == self.tokens[0].known_statuses.COMPLETED
def test_after_object_save_object(self): DbProcessingFactory.after_object(self.wfe, self.tokens, self.tokens[0]) assert self.tokens[0].save.call_count == 1 assert self.tokens[0].save.call_args_list[0][1]['status'] == self.tokens[0].known_statuses.COMPLETED
def test_before_object_save_object(self): DbProcessingFactory.before_object(self.wfe, self.tokens, self.tokens[0]) assert self.tokens[0].save.call_count == 1 assert self.tokens[0].save.call_args_list[0][1][ 'status'] == self.tokens[0].known_statuses.RUNNING
def test_before_object_save_object(self): DbProcessingFactory.before_object(self.wfe, self.tokens, self.tokens[0]) assert self.tokens[0].save.call_count == 1 assert self.tokens[0].save.call_args_list[0][1]['status'] == self.tokens[0].known_statuses.RUNNING