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[0] == 1 and django.VERSION[1] < 7:
        from django.test.utils import setup_test_environment
        setup_test_environment()

    if django.VERSION[0] == 1 and django.VERSION[1] >= 7:
        django.setup()

    TestRunner = get_runner(settings)
    test_runner = TestRunner()
    failures = test_runner.run_tests(['geelweb.django.editos'])
    sys.exit(bool(failures))

import os
import sys


os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
test_dir = os.path.dirname(__file__)
sys.path.insert(0, test_dir)

from django.test.utils import get_runner
from django.conf import settings


def runtests():
    TestRunner = get_runner(settings)
    test_runner = TestRunner(verbosity=1, interactive=True)
    failures = test_runner.run_tests(['geelweb.django.editos'])
    sys.exit(bool(failures))

--- 
+++ 
@@ -6,12 +6,20 @@
 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[0] == 1 and django.VERSION[1] < 7:
+        from django.test.utils import setup_test_environment
+        setup_test_environment()
+
+    if django.VERSION[0] == 1 and django.VERSION[1] >= 7:
+        django.setup()
+
     TestRunner = get_runner(settings)
-    test_runner = TestRunner(verbosity=1, interactive=True)
+    test_runner = TestRunner()
     failures = test_runner.run_tests(['geelweb.django.editos'])
     sys.exit(bool(failures))
Upgrade to test using django 1.7 and 1.8
