Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8df6abded1
Fetching contributors…

Cannot retrieve contributors at this time

file 36 lines (27 sloc) 0.829 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
# 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')
        
Something went wrong with that request. Please try again.