From 26c0fbc8e85a59e25feb3414f5504f98de14d47e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= <hertzog@debian.org>
Date: Fri, 5 Sep 2014 17:20:49 +0200
Subject: [PATCH 1/2] Call django.setup() before running tests for Django 1.7
 compatibility

---
 openstack_auth/tests/run_tests.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/openstack_auth/tests/run_tests.py b/openstack_auth/tests/run_tests.py
index 0252903..46c474c 100644
--- a/openstack_auth/tests/run_tests.py
+++ b/openstack_auth/tests/run_tests.py
@@ -21,6 +21,10 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_auth.tests.settings'
 
 from django.test import simple as test_simple
 
+import django
+if hasattr(django, 'setup'):
+    django.setup()
+
 
 def run(*test_args):
     if not test_args:
-- 
2.1.0

