Ticket #30095: regression_30095.py

File regression_30095.py, 492 bytes (added by Carlton Gibson, 6 years ago)

Test cased used for bisecting change. (Saved in postgres_tests

Line 
1from django.contrib.postgres import fields as pg_fields
2from django.db import models
3
4from . import PostgreSQLTestCase
5
6
7class Test30095(PostgreSQLTestCase):
8
9 def test_choices_tuple_range(self):
10 class Model(models.Model):
11 field = pg_fields.IntegerRangeField(
12 choices=(
13 ((1, 50), "1-50"),
14 ((50, 100), "51-100"),
15 )
16 )
17
18 self.assertEqual(Model._meta.get_field('field').check(), [])
Back to Top