def test_queue_message_dequeue_count_above_max(self, mock_handler_run): input = QueueMessage(body=self.body, dequeue_count=4) functionMain(input) mock_handler_run.assert_not_called()
def test_queue_message_dequeue_count_less_than_max(self, mock_handler_run): input = QueueMessage(body=self.body, dequeue_count=1, ) functionMain(input) mock_handler_run.assert_called_once()
def test_queue_message_dequeue_count_less_than_max(self, mock_handler_run): input = QueueMessage(body='{"data": "test body data"}', dequeue_count=1) functionMain(input) mock_handler_run.assert_called_once()