#NEWLINE# def test_get_gallery( self ) : #NEWLINE# #INDENT# 'if we add a gallery to the site, we should see both the gallery and\n        the photo in the sitemap.' #NEWLINE# self . gallery = GalleryFactory ( slug = 'test-gallery' ) #NEWLINE# response = self . client . get ( '/sitemap.xml' ) #NEWLINE# self . assertContains ( response , '<url><loc>http://example.com/ptests/photo/landscape/</loc><lastmod>2011-12-23</lastmod></url>' ) #NEWLINE# self . assertContains ( response , '<url><loc>http://example.com/ptests/gallery/test-gallery/</loc><lastmod>2011-12-23</lastmod></url>' )