'local_open should be able to read an index from the file system.'

def test_local_index(self):

    f = open('index.html', 'w')
    f.write('<div>content</div>')
    f.close()
    try:
        url = (('file:' + pathname2url(os.getcwd())) + '/')
        res = setuptools.package_index.local_open(url)
    finally:
        os.remove('index.html')
    assert ('content' in res.read())
