示例#1
0
    def test_effective_version_saved(self):
        effective_version_saved(None, self.effective_version)

        self.assertIn('http://localhost/reg-landing/1002/', CACHE_PURGED_URLS)
        self.assertIn('http://localhost/reg-landing/1002/4/',
                      CACHE_PURGED_URLS)
        self.assertIn('http://localhost/reg-landing/1002/versions/',
                      CACHE_PURGED_URLS)
示例#2
0
    def test_effective_version_saved(self):
        effective_version_saved(None, self.effective_version)

        self.assertIn(
            'http://localhost/reg-landing/1002/',
            CACHE_PURGED_URLS
        )
        self.assertIn(
            'http://localhost/reg-landing/1002/4/',
            CACHE_PURGED_URLS
        )
        self.assertIn(
            'http://localhost/reg-landing/1002/versions/',
            CACHE_PURGED_URLS
        )