'Make sure icon paths are correct file:// URLs.'

def test_icons(self, monkeypatch):

    monkeypatch.setattr(filescheme.jinja.utils, 'resource_filename', (lambda name: '/test    path/foo.svg'))
    html = filescheme.dirbrowser_html(os.getcwd()).decode('utf-8')
    soup = bs4.BeautifulSoup(html, 'html.parser')
    print soup.prettify()
    css = soup.html.head.style.string
    assert ("background-image:    url('file:///test%20path/foo.svg');" in css)
