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'):
                # Prime
                hcc[host_string]
                # Test
                ok_(host_string in hcc)
                # Delete
                del hcc[host_string]
                # Test
                ok_(host_string not in hcc)


    #
    # Connection loop flow
    #
HostConnectionCache should delete correctly w/ non-full keys
dataset/ETHPy150Open fabric/fabric/tests/test_network.py/TestNetwork.test_connection_cache_deletion