'Returns the singleton of TestEnvironment, instantiating it first if it
does not yet exist.'

@classmethod
def instance(cls, config=None):

    if (not cls._instance):
        log.debug('creating    singleton    instance    of    "%s",    config:    %s', str(cls), str(config))
        cls._instance = cls(config)
    return cls._instance
