def TestApp(name=None, config=None, enable_logging=False, set_as_current=False, log=UnitLogging, backend=None, broker=None, **kwargs):
 from . import tasks
 config = dict(deepcopy(DEFAULT_TEST_CONFIG), **(config or {}))
 if (broker is not None):
  config.pop(u'broker_url', None)
 if (backend is not None):
  config.pop(u'result_backend', None)
 log = (None if enable_logging else log)
 test_app = Celery((name or u'celery.tests'), set_as_current=set_as_current, log=log, broker=broker, backend=backend, **kwargs)
 test_app.add_defaults(config)
 return test_app

def TestApp ( name = None , config = None , enable_logging = False , set_as_current = False , log = UnitLogging , backend = None , broker = None , ** kwargs ) : from . import tasks config = dict ( deepcopy ( DEFAULT_TEST_CONFIG ) , ** ( config or { } ) ) if ( broker is not None ) : config . pop ( u'broker_url' , None ) if ( backend is not None ) : config . pop ( u'result_backend' , None ) log = ( None if enable_logging else log ) test_app = Celery ( ( name or u'celery.tests' ) , set_as_current = set_as_current , log = log , broker = broker , backend = backend , ** kwargs ) test_app . add_defaults ( config ) return test_app
app used for testing .