diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2017-08-04 11:20:15 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-08-11 15:41:04 -0400 |
| commit | 5cc746206726c538c36a2830e7c068f1c8a0e7c8 (patch) | |
| tree | e172ff3a3a6325167f91704bf6aa5ac097be5435 /tests | |
| parent | 97cb3bd16d8e50d96eb184f8d67dd1723f776d2a (diff) | |
Refs #28459 -- Optimized ModelState instantiation.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/model_regress/test_state.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/model_regress/test_state.py b/tests/model_regress/test_state.py new file mode 100644 index 0000000000..f41e4e52f4 --- /dev/null +++ b/tests/model_regress/test_state.py @@ -0,0 +1,8 @@ +from django.db.models.base import ModelState, ModelStateFieldsCacheDescriptor +from django.test import SimpleTestCase + + +class ModelStateTests(SimpleTestCase): + + def test_fields_cache_descriptor(self): + self.assertIsInstance(ModelState.fields_cache, ModelStateFieldsCacheDescriptor) |
