Update version for release.
[mediagoblin.git] / mediagoblin / tests / test_staticdirect.py
CommitLineData
5377114c
CAW
1from mediagoblin.tools import staticdirect
2
3def test_staticdirect():
4 sdirect = staticdirect.StaticDirect(
5 {None: "/static/",
6 "theme": "http://example.org/themestatic"})
7 assert sdirect("css/monkeys.css") == "/static/css/monkeys.css"
8 assert sdirect("images/lollerskate.png", "theme") == \
9 "http://example.org/themestatic/images/lollerskate.png"