Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created May 30, 2012 19:07
Show Gist options
  • Select an option

  • Save mattdeboard/2838333 to your computer and use it in GitHub Desktop.

Select an option

Save mattdeboard/2838333 to your computer and use it in GitHub Desktop.
def test_no_buid_sitemap(self):
from lxml import etree
from StringIO import StringIO
site = SeoSite.objects.get(id=1)
site.business_units = []
site.save()
job1 = JobDetailFactory.build()
job1.save()
job2 = JobDetailFactory.build(uid=17059007, id=39558)
job2.save()
resp = self.client.get("/sitemap-pages.xml")
self.assertTrue("<url>" in resp.content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment