Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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