def test_close(self):
    self.conn.servers = [mock.Mock(), mock.Mock()]
    self.conn.close()
    for serv in self.conn.servers:
        serv.stop.assert_called_once_with()
        serv.wait.assert_called_once_with()
def test_close(self):
    self.conn.servers = [mock.Mock(), mock.Mock()]
    self.conn.close()
    for serv in self.conn.servers:
        serv.stop.assert_called_once_with()
        serv.wait.assert_called_once_with()