예제 #1
0
파일: test_site.py 프로젝트: jiivan/hyde
 def test_content_url_encoding_safe(self):
     s = Site(self.SITE_PATH, config=self.config)
     s.load()
     path = '".jpg/abc'
     print((s.content_url(path, "")))
     print(("/" + quote(path, "")))
     assert s.content_url(path, "") == "/" + quote(path, "")
예제 #2
0
파일: test_site.py 프로젝트: vosskuhle/hyde
 def test_content_url_encoding_safe(self):
     s = Site(self.SITE_PATH, config=self.config)
     s.load()
     path = '".jpg/abc'
     print(s.content_url(path, ""))
     print("/" + quote(path, ""))
     assert s.content_url(path, "") == "/" + quote(path, "")
예제 #3
0
파일: test_site.py 프로젝트: jiivan/hyde
 def test_content_url_encoding(self):
     s = Site(self.SITE_PATH, config=self.config)
     s.load()
     path = '".jpg'
     assert s.content_url(path) == "/" + quote(path)
예제 #4
0
파일: test_site.py 프로젝트: jiivan/hyde
 def test_content_url(self):
     s = Site(self.SITE_PATH, config=self.config)
     s.load()
     path = 'blog/2010/december'
     assert s.content_url(path) == "/" + path
예제 #5
0
 def test_content_url(self):
     s = Site(self.SITE_PATH, config=self.config)
     s.load()
     path = 'blog/2010/december'
     assert s.content_url(path) == "/" + path
예제 #6
0
파일: test_site.py 프로젝트: bhunter/hyde
 def test_content_url_encoding(self):
     s = Site(self.SITE_PATH, config=self.config)
     s.load()
     path = '".jpg'
     assert s.content_url(path) == quote("/" + path)