1
0
mirror of https://github.com/django/django.git synced 2025-03-28 10:10:45 +00:00

Fixed the tests from [8033] to work for the PostgreSQL backends (the primary

key value isn't guaranteed to be the same across all backends). Still some
breakage on MySQL because of the way it treats booleans, but that's another
issue.

Refs .


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-07-22 05:15:40 +00:00
parent 6ef47cfe5f
commit 0e9587fd6b

@ -162,16 +162,14 @@ DoesNotExist: ItalianRestaurant matching query does not exist.
# Regression test for #6755 # Regression test for #6755
>>> r = Restaurant(serves_pizza=False) >>> r = Restaurant(serves_pizza=False)
>>> r.save() >>> r.save()
>>> r.id >>> r.id == r.place_ptr_id
3 True
>>> r.place_ptr_id >>> orig_id = r.id
3 >>> r = Restaurant(place_ptr_id=orig_id, serves_pizza=True)
>>> r = Restaurant(place_ptr_id=3, serves_pizza=True)
>>> r.save() >>> r.save()
>>> r.id >>> r.id == orig_id
3 True
>>> r.place_ptr_id >>> r.id == r.place_ptr_id
3 True
"""} """}