i got these Errors like these : I got errors while running runtests.py... 
I use ubuntu 16.04 and Django version 1.6.5...I copied code from github
   

     ./runtests.py: line 3: os.environ[DJANGO_SETTINGS_MODULE]: command not found ./runtests.py: line 4: syntax error near unexpected token `(' ./runtests.py: line 4: `test_dir = os.path.dirname(__file__)'

my runtest.py file:
  

      import os
        import sys
        os.environ['DJANGO_SETTINGS_MODULE'] = 'test-settings'
        test_dir = os.path.dirname(__file__)
        sys.path.insert(0, test_dir)
        
        import django
        from django.test.utils import get_runner
        from django.conf import settings
        
        
        def runtests():
            if django.VERSION >= (1, 7):
                django.setup()
            TestRunner = get_runner(settings)
            test_runner = TestRunner(verbosity=1, interactive=True)
            failures = test_runner.run_tests(
                ['quiz', 'essay', 'multichoice', 'true_false']
            )
            sys.exit(bool(failures))
        
        if __name__ == '__main__':
            runtests()

