@task
def test_varnish(ctx):
 proc = apiserver(ctx, wait=False, autoreload=False)
 try:
  sleep(5)
  test_module(ctx, module='api/caching/tests/test_caching.py')
 finally:
  proc.kill()

@ task def test_varnish ( ctx ) : proc = apiserver ( ctx , wait = False , autoreload = False ) try : sleep ( 5 ) test_module ( ctx , module = 'api/caching/tests/test_caching.py' ) finally : proc . kill ( )
run the varnish test suite .