old_contents: # How to test it?
  # easy_install nose
  # cd test
  # nosetests test_manage.py
  
  import os
  
  class TestMakeProject:
      def setUp(self):
          import shutil
          if os.path.exists('test'):
              shutil.rmtree('test', ignore_errors=True)
              
      def tearDown(self):
          import shutil
          if os.path.exists('test'):
              shutil.rmtree('test', ignore_errors=True)
  
      def test_case(self):
          from uliweb import manage
  
          manage.make_project('test')
          assert os.path.exists('test')
          
  class TestMakeApp:
     def tearDown(self):
         import shutil
         if os.path.exists('test'):
             shutil.rmtree('test', ignore_errors=True)
  
     def test_app(self):
          from uliweb import manage
          
          manage.make_app('test')
          assert os.path.exists('test')
          
new_contents: # How to test it?
  # easy_install nose
  # cd test
  # nosetests test_manage.py
  
  import os
  
  class TestMakeProject:
      def setup_method(self, test_makeproject):
          import shutil
          if os.path.exists('test'):
              shutil.rmtree('test', ignore_errors=True)
          print 'setup'
              
      def teardown_method(self, test_makeproject):
          import shutil
          if os.path.exists('test'):
              shutil.rmtree('test', ignore_errors=True)
          print 'teardown'
  
      def test_makeproject(self):
          from uliweb import manage
  
          manage.call('uliweb makeproject -f test')
          assert os.path.exists('test')
          
      def test_makeapp(self):
          from uliweb import manage
          
          manage.call('uliweb makeproject -f test')
          os.chdir('test')
          manage.call('uliweb makeapp Hello')
          os.chdir('..')
          assert os.path.exists('test/apps/Hello')
          
  
subject: fix test_manage.py to suit with py.test