Compare commits
2 Commits
3b526c9c6f
...
85f2a81ebb
Author | SHA1 | Date | |
---|---|---|---|
85f2a81ebb | |||
8de23a3f3b |
@ -91,3 +91,11 @@ class PhotoAlbumTestCase(ModelTestCase):
|
|||||||
msg='Expecting albumlink.url to contain \'lostplaces.example.com\' string'
|
msg='Expecting albumlink.url to contain \'lostplaces.example.com\' string'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
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__
|
||||||
|
)
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user