diff --git a/tests/regressiontests/model_inheritance_regress/models.py b/tests/regressiontests/model_inheritance_regress/models.py
index 716c7f5..a446a87 100644
a
|
b
|
__test__ = {'API_TESTS':"""
|
86 | 86 | [<Place: Guido's House of Pasta the place>, <Place: Main St the place>] |
87 | 87 | |
88 | 88 | >>> dicts = Restaurant.objects.values('name','serves_hot_dogs') |
89 | | >>> [sorted(d.items()) for d in dicts] |
90 | | [[('name', u"Guido's House of Pasta"), ('serves_hot_dogs', True)]] |
| 89 | >>> [sorted(d.items()) for d in dicts] == [[('name', u"Guido's House of Pasta"), ('serves_hot_dogs', True)]] |
| 90 | True |
91 | 91 | |
92 | 92 | >>> dicts = ItalianRestaurant.objects.values('name','serves_hot_dogs','serves_gnocchi') |
93 | | >>> [sorted(d.items()) for d in dicts] |
94 | | [[('name', u"Guido's House of Pasta"), ('serves_gnocchi', True), ('serves_hot_dogs', True)]] |
| 93 | >>> [sorted(d.items()) for d in dicts] == [[('name', u"Guido's House of Pasta"), ('serves_gnocchi', True), ('serves_hot_dogs', True)]] |
| 94 | True |
95 | 95 | |
96 | 96 | >>> dicts = ParkingLot.objects.values('name','capacity') |
97 | 97 | >>> [sorted(d.items()) for d in dicts] |
… |
… |
__test__ = {'API_TESTS':"""
|
118 | 118 | [<Place: Derelict lot the place>, <Place: Guido's All New House of Pasta the place>] |
119 | 119 | |
120 | 120 | >>> dicts = Restaurant.objects.values('name','serves_hot_dogs') |
121 | | >>> [sorted(d.items()) for d in dicts] |
122 | | [[('name', u"Guido's All New House of Pasta"), ('serves_hot_dogs', False)]] |
| 121 | >>> [sorted(d.items()) for d in dicts] == [[('name', u"Guido's All New House of Pasta"), ('serves_hot_dogs', False)]] |
| 122 | True |
123 | 123 | |
124 | 124 | >>> dicts = ItalianRestaurant.objects.values('name','serves_hot_dogs','serves_gnocchi') |
125 | | >>> [sorted(d.items()) for d in dicts] |
126 | | [[('name', u"Guido's All New House of Pasta"), ('serves_gnocchi', False), ('serves_hot_dogs', False)]] |
| 125 | >>> [sorted(d.items()) for d in dicts] == [[('name', u"Guido's All New House of Pasta"), ('serves_gnocchi', False), ('serves_hot_dogs', False)]] |
| 126 | True |
127 | 127 | |
128 | 128 | >>> dicts = ParkingLot.objects.values('name','capacity') |
129 | 129 | >>> [sorted(d.items()) for d in dicts] |
… |
… |
__test__ = {'API_TESTS':"""
|
138 | 138 | # Note that the name has not changed |
139 | 139 | # - name is an attribute of Place, not ItalianRestaurant |
140 | 140 | >>> dicts = ItalianRestaurant.objects.values('name','serves_hot_dogs','serves_gnocchi') |
141 | | >>> [sorted(d.items()) for d in dicts] |
142 | | [[('name', u"Guido's All New House of Pasta"), ('serves_gnocchi', False), ('serves_hot_dogs', False)]] |
| 141 | >>> [sorted(d.items()) for d in dicts] == [[('name', u"Guido's All New House of Pasta"), ('serves_gnocchi', False), ('serves_hot_dogs', False)]] |
| 142 | True |
143 | 143 | |
144 | 144 | # Regressions tests for #7105: dates() queries should be able to use fields |
145 | 145 | # from the parent model as easily as the child. |