def METHOD_NAME(self):
    with TemporaryDirectory() as media_root:
        with SettingsPatcher(MEDIA_ROOT=media_root):
            Path(media_root, 'not-tar-file.tar').touch()
            Path(media_root, 'analysis_settings.json').touch()
            self.assertRaises(InvalidInputsException, start_analysis,
                              os.path.join(media_root, 'analysis_settings.json'),
                              os.path.join(media_root, 'not-tar-file.tar')
                              )