Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/j/django-cachepurge-0.3/django_cachepurge/tests/__init__.py   django-cachepurge(Download)
    def test_purge_url_only_model_signals(self):
        self.assertEquals(django_cachepurge.get_urls(), set())
        # create
        content = testingmodels.OnlyPurgeUrls(title=u'model with purge url only')
        content.save()
        content.title = u'edited title'
        self.assertEquals(django_cachepurge.get_urls(), set())
        content.save()
        self.assertEquals(sorted(django_cachepurge.get_urls()),
                          ['/some/other/url'])