human
Solve the following python programming problem given the following code:
@ defer.inlineCallbacks 
def test_idle_connections_are_disconnected(self) : 
    connection = providers.AMQPConnection ('test_name', servers = ['tcp:host=server_1:port=5672'], max_idle_time = 0) 
    connection.setServiceParent (self.service) 
    events = list () 
    connection.on_connected += events.append 
    connection.on_disconnected += events.append 
    with patch.object (providers.endpoints, 'clientFromString') as mocked_client_from_string : 
        created_protocols = defer.DeferredQueue () 
        def connect(factory) : 
            protocol = factory.buildProtocol (None) 
            protocol.transport = mock.Mock () 
            protocol.transport.loseConnection.side_effect = (lambda : protocol.connectionLost ('test lost connection')) 
            created_protocols.put (protocol) 
            protocol.connectionReady ('test ready') 
            return protocol 
mocked_client_from_string.return_value.connect.side_effect = connect 
        connection.startService () 
        protocol_1 = (yield created_protocols.get ()) 
        protocol_2 = (yield created_protocols.get ()) 
        protocol_3 = (yield created_protocols.get ()) 
        (yield util.wait (0)) 
        self.assertEquals (events, [protocol_1, 'test lost connection', protocol_2, 'test lost connection', protocol_3]) 
        events [:] = list () 
        for i in range (10) : 
            protocol_3._send_frame (frame.Heartbeat ()) 
            (yield util.wait (0)) 
self.assertEquals (events, list ()) 
        self.assertEquals (protocol_3.pending, list ()) 
        (yield util.wait (0)) 
        self.assertEquals (len (created_protocols.pending), 1) 
        self.assertEquals (events, ['test lost connection', created_protocols.pending [0]]) 

    
    

    Fix the buggy line: self.assertEquals (protocol_3.pending, list ())
assistant
#Here is Python program to fix the buggy line: self.

self.assertEquals (created_protocols.pending, list ())