diff options
author | Tim Graham <timograham@gmail.com> | 2017-02-15 13:33:55 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-02-15 20:15:02 -0500 |
commit | b008f7cc5655d01817a8825e6317877b43c92181 (patch) | |
tree | 4e70b2dbab77c2dee5e6fdc43c87535c52126740 /tests/model_indexes | |
parent | a7214f0e84913a27e0b73de89d4c827ef1c53b94 (diff) | |
download | django-b008f7cc5655d01817a8825e6317877b43c92181.tar.gz |
Fixed #27135 -- Made index introspection return Index.suffix.
Diffstat (limited to 'tests/model_indexes')
-rw-r--r-- | tests/model_indexes/tests.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/model_indexes/tests.py b/tests/model_indexes/tests.py index 0e276dbd15..33e4bfaa7c 100644 --- a/tests/model_indexes/tests.py +++ b/tests/model_indexes/tests.py @@ -1,10 +1,13 @@ from django.db import models -from django.test import TestCase +from django.test import SimpleTestCase from .models import Book -class IndexesTests(TestCase): +class IndexesTests(SimpleTestCase): + + def test_suffix(self): + self.assertEqual(models.Index.suffix, 'idx') def test_repr(self): index = models.Index(fields=['title']) |