def METHOD_NAME(self, _extract_file_list):
    # given
    swagger_mock = self._get_swagger_mock()
    _extract_file_list.return_value = [self.emptyDirectoryFile]
    # when
    with self.assertRaises(ArtifactUploadingError):
        track_to_existing_artifact(
            swagger_client=swagger_mock,
            project_id=self.project_id,
            path=["sub", "one"],
            artifact_hash="abcdef",
            parent_identifier=self.parent_identifier,
            entries=[("/path/to/file", "/path/to")],
            default_request_params={},
            exclude_directory_files=True,
        )