Created
May 30, 2012 19:07
-
-
Save mattdeboard/2838333 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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