diff options
Diffstat (limited to 'tests/regressiontests/mongodb/tests.py')
| -rw-r--r-- | tests/regressiontests/mongodb/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/regressiontests/mongodb/tests.py b/tests/regressiontests/mongodb/tests.py index a39aec29d1..c87a4b18d4 100644 --- a/tests/regressiontests/mongodb/tests.py +++ b/tests/regressiontests/mongodb/tests.py @@ -1,3 +1,4 @@ +from django.db import connection from django.db.models import Count, F from django.test import TestCase @@ -337,3 +338,8 @@ class MongoTestCase(TestCase): ], lambda g: g.name, ) + + def test_close(self): + # Ensure that closing a connection that was never established doesn't + # blow up. + connection.close() |
