def METHOD_NAME(self):
    d = driver("blah", "bleh", "blih", optional_args=optional_args)
    d.open()
    with pytest.raises(KeyError) as excinfo:
        d.get_bgp_neighbors()
    assert "Something" in str(excinfo.value)
    with pytest.raises(napalm.base.exceptions.ConnectionClosedException) as excinfo:
        d.get_bgp_neighbors()
    assert "Something" in str(excinfo.value)
    with pytest.raises(TypeError) as excinfo:
        d.get_bgp_neighbors()
        assert "Couldn't resolve exception NoIdeaException" in str(excinfo.value)
    d.close()