diff --git a/tests/one_to_one/tests.py b/tests/one_to_one/tests.py
index b71ee06..cdc9c34 100644
a
|
b
|
class OneToOneTests(TestCase):
|
135 | 135 | should raise an exception. |
136 | 136 | """ |
137 | 137 | place = Place(name='User', address='London') |
| 138 | self.assertRaises(Restaurant.DoesNotExist, lambda: place.restaurant) |
138 | 139 | msg = "save() prohibited to prevent data loss due to unsaved related object 'place'." |
139 | 140 | with self.assertRaisesMessage(ValueError, msg): |
140 | 141 | Restaurant.objects.create(place=place, serves_hot_dogs=True, serves_pizza=False) |
| 142 | self.assertRaises(Restaurant.DoesNotExist, lambda: place.restaurant) |
141 | 143 | |
142 | 144 | def test_reverse_relationship_cache_cascade(self): |
143 | 145 | """ |