From 75df680f6e0fda6a603e64627a71e187ca117bd6 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Tue, 22 Oct 2013 15:06:16 +0200 Subject: Fix #420 -- Regression in 729d75d. Thanks Jacob Hesch for the report. --- tests/tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/tests.py') diff --git a/tests/tests.py b/tests/tests.py index e015b6e..c430d5c 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -9,6 +9,7 @@ from xml.etree import ElementTree as ET import django from django.conf import settings from django.contrib.auth.models import User +from django.core import management from django.db import connection, IntegrityError from django.http import HttpResponse from django.test import TestCase, RequestFactory @@ -342,3 +343,11 @@ class LoggingPanelTestCase(BaseTestCase): self.assertEqual(1, len(records)) self.assertEqual(MESSAGE_IF_STRING_REPRESENTATION_INVALID, records[0]['message']) + + +class DebugSQLShellTestCase(TestCase): + + def test_command_exists(self): + command_name = 'debugsqlshell' + app_name = management.get_commands()[command_name] + management.load_command_class(app_name, command_name) -- cgit v1.2.3