def test_invalid_project_name(self):

        def cleanup(p):
            if os.path.exists(p):
                shutil.rmtree(p)

        args = ['startproject', '7testproject']
        testproject_dir = os.path.join(test_dir, '7testproject')

        out, err = self.run_django_admin(args)
        self.addCleanup(cleanup, testproject_dir)
        self.assertOutput(err, "Error: '7testproject' is not a valid project name. Please make sure the name begins with a letter or underscore.")
        self.assertFalse(os.path.exists(testproject_dir))
Make sure the startproject management command validates a project name
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/tests/regressiontests/admin_scripts/tests.py/StartProject.test_invalid_project_name