Helper method provided because we actually can't put that in the constructor, it creates a bug in Nose tests
        https://github.com/nose-devs/nose/issues/725

        :param location:
        :return:

def create(location: str, simpleobjects_found = None, complexobject_attributes_found = None):  # -> ObjectNotFoundOnFileSystemError:
        """
        Helper method provided because we actually can't put that in the constructor, it creates a bug in Nose tests
        https://github.com/nose-devs/nose/issues/725

        :param location:
        :return:
        """
        if len(complexobject_attributes_found) > 0 or len(simpleobjects_found) > 0:
            return ObjectNotFoundOnFileSystemError('Mandatory object : ' + location + ' could not be found on the file'
                                                   ' system, either as a multifile or as a singlefile with any '
                                                   'extension, but it seems that this is because you have left the '
                                                   'extension in the location name. Please remove the file extension '
                                                   'from the location name and try again')
        else:
            return ObjectNotFoundOnFileSystemError('Mandatory object : ' + location + ' could not be found on the file'
                                                   ' system, either as a multifile or as a singlefile with any '
                                                   'extension.')