Ticket #6706: 6706-tests-update-and-save.diff
File 6706-tests-update-and-save.diff, 904 bytes (added by , 17 years ago) |
---|
-
tests/modeltests/model_inheritance/models.py
124 124 >>> p2.save() 125 125 126 126 Test constructor for Restaurant. 127 >>> r = Restaurant(name='Demon Dogs', address='944 W. Fullerton',serves_hot_dogs=True, serves_pizza=False, rating= 2)127 >>> r = Restaurant(name='Demon Dogs', address='944 W. Fullerton',serves_hot_dogs=True, serves_pizza=False, rating=1) 128 128 >>> r.save() 129 129 130 # Update the instance by modifying a field and calling the save() command 131 # again. 132 >>> r.rating = 2 133 >>> r.save() 134 130 135 # Test the constructor for ItalianRestaurant. 131 136 >>> ir = ItalianRestaurant(name='Ristorante Miron', address='1234 W. Elm', serves_hot_dogs=False, serves_pizza=False, serves_gnocchi=True, rating=4) 132 137 >>> ir.save()