def test_full_url_for_media(self): s = Site(self.SITE_PATH, config=self.config) s.load() path = 'media/css/site.css' assert s.is_media(path) full_url = s.full_url(path) assert full_url == "/" + path
def test_full_url_for_content(self): s = Site(self.SITE_PATH, config=self.config) s.load() path = 'blog/2010/december' assert s.full_url(path) == "/" + path