Example #1
0
 def test_link(self):
     url = "http://example.com"
     link = Link(url=url)
     link.put()
     self.assertEqual(Link.gql("WHERE url = :1", url).count(), 1)
 def test_photo_page_should_have_links(self):
     url = "http://example.com"
     link = Link(url=url, published=True)
     link.put()
     response = self.app.get('/photos/')
     assert url in response, url + " not found in " + str(response)