def sources(state, sources=None):
    legislature = get_legislature_from_abbr(state)
    return {
        "legislature_name": legislature.name,
        "legislature_url": legislature.jurisdiction.url,
        "sources": sources,
    }
def test_get_legislature():
    populate_db()
    assert get_legislature_from_abbr("ak").name == "Alaska Legislature"