Exemplo n.º 1
0
 def manual_test_django_1_5(self):
     with patch('sys.stdout', self.stdout):
         with patch('sys.stderr', self.stderr):
             sys.argv = ['main'] + ['--db=sqlite://localhost/test.db',
                                 '-len', '--django-version=1.5',
                                 '-q', '-u', '-p'+self.project_dir, 'example_prj']
             main.execute()
             # Checking we successfully completed the whole process
             self.assertTrue(("Get into '%s' directory and type 'python manage.py runserver' to start your project" % self.project_dir) in self.stdout.getvalue())
Exemplo n.º 2
0
 def manual_test_develop(self):
     with PatchStd(self.stdout, self.stderr):
         self._remove_project_dir()
         sys.argv = ['main'] + ['--db=sqlite://localhost/test.db',
                                '-len', '--cms-version=develop',
                                '-q', '-u', '-p'+self.project_dir, 'example_prj']
         main.execute()
         # Checking we successfully completed the whole process
         self.assertTrue(("Get into '%s' directory and type 'python manage.py runserver' to start your project" % self.project_dir) in self.stdout.getvalue())