===================
iw_content template
===================

Check that the directory does not exist::

  >>> rmdir(tempdir, 'iw.example')

Go to a directory::

  >>> cd(tempdir)

Then use paster::
XXX too much intrusive:: creates egg-info into python

  >>> sh('paster create -t iw_python iw.example --no-interactive')
  paster create -t iw_python iw.example --no-interactive
  ...

Go to package dir::

  >>> cd(tempdir, 'iw.example', 'iw', 'iwexample')

Create a config file::

  >>> touch(tempdir, 'iw.example', 'iw', 'iwexample', 'config.py',
  ... data="PROJECTNAME='iw.example")

Then use paster to create a content type::

  >>> sh('paster create -t iw_content MyContent --no-interactive')
  paster create -t iw_content MyContent --no-interactive
  ...

Check content::

  >>> package_dir = os.path.join(tempdir, 'iw.example', 'iw', 'iwexample')
  >>> ls(package_dir, 'interfaces')
  - __init__.py
  - mycontent.py
  >>> ls(package_dir, 'content')
  - __init__.py
  - mycontent.py
  >>> ls(package_dir, 'tests')
  - __init__.py
  - test_iwexampledocs.py
  - test_iwexampledocstrings.py
  - test_mycontentdocs.py
  >>> ls(package_dir, 'doctests')
  - README.txt
  - mycontent.txt
  >>> ls(package_dir, 'profiles', 'default')
  d types
  - types.xml
  
