

def test_inline_css_helper_external_url():
    env = jingo.env
    t = env.from_string("{{ inline_css('common_url', debug=True) }}")
    s = t.render()
    eq_(s, '<link rel="stylesheet" media="screen,projection,tv" href="http://example.com/test.css" />')
    t = env.from_string("{{ inline_css('common_url', debug=False) }}")
    s = t.render()
    eq_(s, '<style type="text/css" media="screen,projection,tv">body{color:#999}</style>')

dataset/ETHPy150Open jsocol/jingo-minify/jingo_minify/tests.py test_inline_css_helper_external_url/original