Beispiel #1
0
    def test_successful(self, mock_store):
        """Tests calling JobData.add_output() successfully."""

        data = {'output_data': []}
        job_data = JobData(data)

        # Method to test, we will test it by calling validate below
        job_data.add_output('File1', 1)

        files = ['File1']
        # No exception is success
        warnings = JobData(data).validate_output_files(files)
        self.assertFalse(warnings)
Beispiel #2
0
    def test_successful(self, mock_store):
        """Tests calling JobData.add_output() successfully."""

        data = {'output_data': []}
        job_data = JobData(data)

        # Method to test, we will test it by calling validate below
        job_data.add_output('File1', 1)

        files = ['File1']
        # No exception is success
        warnings = JobData(data).validate_output_files(files)
        self.assertFalse(warnings)