diff options
| author | Jason Pellerin <jpellerin@gmail.com> | 2006-07-19 02:28:58 +0000 |
|---|---|---|
| committer | Jason Pellerin <jpellerin@gmail.com> | 2006-07-19 02:28:58 +0000 |
| commit | 22afa65b4b83baa9e9ee1980f96d37ddb5d0adb2 (patch) | |
| tree | 3e9443810682909e7c2f917f8d1c6efc3883760b | |
| parent | d96e3c93a59ce773ff5e85256ff8d91b421d5d0a (diff) | |
[multi-db] Added basic tests for Manager.db attribute.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@3363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/othertests/manager_db.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/othertests/manager_db.py b/tests/othertests/manager_db.py new file mode 100644 index 0000000000..936b6a21d5 --- /dev/null +++ b/tests/othertests/manager_db.py @@ -0,0 +1,23 @@ +from django.db import models + +def run_tests(verbosity=0): + class Insect(models.Model): + common_name = models.CharField(maxlength=64) + latin_name = models.CharField(maxlength=128) + + class Meta: + app_label = 'manager_db' + + m = Insect.objects + db = Insect.objects.db + + assert db + assert db.connection + assert db.connection.cursor + assert db.backend + assert db.backend.quote_name + assert db.get_creation_module + +if __name__ == '__main__': + run_tests() + print "ok" |
