old_contents: from __future__ import unicode_literals
  from nose.tools import ok_
  
  from clastic import Application, default_response
  from clastic.session import CookieSessionMiddleware
  
  from common import session_hello_world
  
  
  def test_serve():
      cookie_session = CookieSessionMiddleware()
      app = Application([('/', session_hello_world, default_response),
                         ('/<name>/', session_hello_world, default_response)],
                        middlewares=[cookie_session])
      yield ok_, app.serve(_jk_just_testing=True)
  
new_contents: from __future__ import unicode_literals
  from nose.tools import ok_, eq_
  
  import os
  from werkzeug.test import Client
  
  from clastic import Application, default_response, Response
  from clastic.session import CookieSessionMiddleware
  
  from common import session_hello_world
  
  
  _CUR_DIR = os.path.dirname(os.path.abspath(__file__))
  
  
  def test_serve():
      cookie_session = CookieSessionMiddleware()
      app = Application([('/', session_hello_world, default_response),
                         ('/<name>/', session_hello_world, default_response)],
                        middlewares=[cookie_session])
  
      yield ok_, app.serve(_jk_just_testing=True, static_path=_CUR_DIR)
      cl = Client(app, Response)
  
      yield eq_, cl.get('/').status_code, 200
      yield eq_, cl.get('/_meta/').status_code, 200
      yield eq_, cl.get('/static/test_serve.py').status_code, 200
  
subject: add tests for default serve behavior for new static application