summaryrefslogtreecommitdiff
path: root/tests/regressiontests/test_runner/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/test_runner/tests.py')
-rw-r--r--tests/regressiontests/test_runner/tests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/regressiontests/test_runner/tests.py b/tests/regressiontests/test_runner/tests.py
index 93eabf74e3..5df421c54b 100644
--- a/tests/regressiontests/test_runner/tests.py
+++ b/tests/regressiontests/test_runner/tests.py
@@ -1,7 +1,7 @@
"""
Tests for django test runner
"""
-from __future__ import absolute_import
+from __future__ import absolute_import, unicode_literals
import sys
from optparse import make_option
@@ -150,6 +150,11 @@ class ManageCommandTests(unittest.TestCase):
self.assertTrue(MockTestRunner.invoked,
"The custom test runner has not been invoked")
+ def test_bad_test_runner(self):
+ with self.assertRaises(AttributeError):
+ call_command('test', 'sites',
+ testrunner='regressiontests.test_runner.NonExistentRunner')
+
class CustomOptionsTestRunner(simple.DjangoTestSuiteRunner):
option_list = (