示例#1
0
 def test_static_url(self):
     result = template_utils.static_url("images/rocket.png")
     self.assertEqual(result, "/static/images/rocket.png?v=7d7c26f")
示例#2
0
 def test_static_url_no_file(self):
     result = template_utils.static_url("url")
     self.assertEqual(result, "/static/url")