diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py
index 6b63b8f..9a86353 100644
a
|
b
|
from django.utils.functional import lazy
|
23 | 23 | |
24 | 24 | from .models import ( |
25 | 25 | Bar, BigD, BigIntegerModel, BigS, BooleanModel, DataModel, DateTimeModel, |
26 | | Document, FksToBooleans, FkToChar, FloatModel, Foo, GenericIPAddress, |
27 | | IntegerModel, NullBooleanModel, PositiveIntegerModel, |
| 26 | DecimalLessThanOne, Document, FksToBooleans, FkToChar, FloatModel, Foo, |
| 27 | GenericIPAddress, IntegerModel, NullBooleanModel, PositiveIntegerModel, |
28 | 28 | PositiveSmallIntegerModel, Post, PrimaryKeyCharModel, RenamedField, |
29 | 29 | SmallIntegerModel, VerboseNameField, Whiz, WhizIter, WhizIterEmpty, |
30 | 30 | ) |
… |
… |
class DecimalFieldTests(test.TestCase):
|
163 | 163 | # This should not crash. That counts as a win for our purposes. |
164 | 164 | Foo.objects.filter(d__gte=100000000000) |
165 | 165 | |
| 166 | def test_max_digits_equals_decimal_places(self): |
| 167 | a = DecimalLessThanOne(d=1) |
| 168 | a.full_clean() |
| 169 | a.save() |
| 170 | |
166 | 171 | |
167 | 172 | class ForeignKeyTests(test.TestCase): |
168 | 173 | def test_callable_default(self): |