def test_all_successful_extracts(self, mock_pypdf2, mock_textract,
                                     mock_pdfminer):

        """Function:  test_all_successful_extracts

        Description:  Test with all successful extracts.

        Arguments:

        """

        mock_pypdf2.return_value = (True, self.final_data)
        mock_textract.return_value = (True, self.final_data)
        mock_pdfminer.return_value = (True, self.final_data)

        self.assertTrue(rmq_metadata._process_queue(
            self.cfg.queue_list[0], self.body, self.r_key, self.cfg,
            self.f_name, self.logger))
    def test_pypdf2_extract_fails(self, mock_pypdf2, mock_textract,
                                  mock_pdfminer):

        """Function:  test_pypdf2_extract_fails

        Description:  Test with pypdf2 extract fails.

        Arguments:

        """

        mock_pypdf2.return_value = (False, [])
        mock_textract.return_value = (True, self.final_data)
        mock_pdfminer.return_value = (True, self.final_data)

        self.assertTrue(rmq_metadata._process_queue(
            self.cfg.queue_list[0], self.body, self.r_key, self.cfg,
            self.f_name, self.logger))