def test_check_if_scene_is_unique_return_value(self, config):
        """Test checking if the current scene is unique or if it has been processed earlier."""
        config.return_value = self.config_complete
        myfilename = "/tmp/mytestfile"
        aapp_run_config = AappRunnerConfig(myfilename, 'norrkoping', 'xl-band')
        aapp_config = AappL1Config(aapp_run_config.config, 'xl-band')

        aapp_config['platform_name'] = 'metop03'
        aapp_config['collection_area_id'] = 'euron1'
        aapp_config['starttime'] = datetime(2022, 1, 8, 12, 49, 50)
        aapp_config['endtime'] = datetime(2022, 1, 8, 13, 0, 26)

        aapp_config.job_register = {}

        result = check_if_scene_is_unique(aapp_config)
        assert result

        aapp_config.job_register = {'metop03': [(datetime(2022, 1, 8, 12, 49, 50),
                                                 datetime(2022, 1, 8, 13, 0, 26), 'euron1')]}
        # An EARS scene (same platform and overlapping time interval and over
        # the same area of interest) arrives shortly after:
        aapp_config['platform_name'] = 'metop03'
        aapp_config['collection_area_id'] = 'euron1'
        aapp_config['starttime'] = datetime(2022, 1, 8, 12, 50)
        aapp_config['endtime'] = datetime(2022, 1, 8, 13, 0)

        result = check_if_scene_is_unique(aapp_config)
        assert not result