Browse Source

Issue #51: Added failing test for full_url method for media files

main
Lakshmi Vyasarajan 13 years ago
parent
commit
739bc3b48a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      hyde/tests/test_site.py

+ 2
- 0
hyde/tests/test_site.py View File

@@ -223,6 +223,8 @@ class TestSiteWithConfig(object):
path = 'media/css/site.css'
assert s.is_media(path)
full_url = s.full_url(path)
print s.config.media_root_path
print File(path).get_relative_path(s.config.media_root_path)
assert full_url == "/" + path

def test_media_url_from_resource(self):


Loading…
Cancel
Save