diff --git a/django_lostplaces/lostplaces/tests/models/test_link_model.py b/django_lostplaces/lostplaces/tests/models/test_link_model.py index 601b38a..0d159c0 100644 --- a/django_lostplaces/lostplaces/tests/models/test_link_model.py +++ b/django_lostplaces/lostplaces/tests/models/test_link_model.py @@ -90,4 +90,12 @@ class PhotoAlbumTestCase(ModelTestCase): self.assertTrue('lostplaces.example.com' in albumlink.url, msg='Expecting albumlink.url to contain \'lostplaces.example.com\' string' ) - \ No newline at end of file + + def test_linked_place(self): + albumlink = self.albumlink + place = self.place + self.assertTrue(str(albumlink.place) in str(place.name), + msg='Expecting %s.__str__ to contain the name' % ( + self.model.__name__ + ) + )