'HostConnectionCache should delete correctly w/ non-full keys'

def test_connection_cache_deletion(self):

    hcc = HostConnectionCache()
    fake = Fake('connect', callable=True)
    with patched_context('fabric.network', 'connect', fake):
        for host_string in ('hostname', 'user@hostname', 'user@hostname:222'):
            hcc[host_string]
            ok_((host_string in hcc))
            del hcc[host_string]
            ok_((host_string not in hcc))
