Fix #5398 and #5395 - Fix tests failing due to problem creating connection for alembic
[larjonas-mediagoblin.git] / mediagoblin / tests / test_staticdirect.py
blob3a9e2fd9687220ef45978932802cf1fb2f857caf
1 from mediagoblin.tools import staticdirect
3 def 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"