new_contents: #
  # Copyright (C) 2015 Satoru SATOH <ssato at redhat.com>
  #
  import os.path
  import tempfile
  
  
  def selfdir():
      return os.path.dirname(__file__)
  
  
  def setup_workdir():
      return tempfile.mkdtemp(dir="/tmp", prefix="python-anytemplate-tests-")
  
  
  def cleanup_workdir(workdir):
      """
      FIXME: Danger!
      """
      os.system("rm -rf " + workdir)
  
  # vim:sw=4:ts=4:et:
  
subject: add common test module