def test_iterstatic_url():
    core.config.update({
        'STATIC_URL': '/static'
    })
    handler = TestHandler()
    assets = list(handler.iterstatic(url=True))
    assert len(assets) == 3
    assert os.path.join('/static', 'fakemodule', 'fakestyle.css') in assets
    assert os.path.join('/static', 'fakemodule', 'fakejs', 'fakescript.js') in assets
def test_iterstatic_folder():
    handler = TestHandler()
    assets = list(handler.iterstatic(url=False))
    assert os.path.abspath(
        os.path.join(HERE, 'fakemodule', 'static', 'fakestyle.css')) in assets
    assert len(assets) == 3