Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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