'Test that reading a non-INI formatted file raises an exception'

def test_invalid_config(self):

    tmp_file = tempfile.NamedTemporaryFile()
    tmp_file.write('<html>random    garbage    file    with    no    section    headings</html>')
    tmp_file.flush()
    try:
        config.StarClusterConfig(tmp_file.name, cache=True).load()
    except exception.ConfigHasNoSections:
        pass
    else:
        raise Exception('config    allows    non-INI    formatted    files')
