示例#1
0
 def test_close(self):
     client_num = [1, 2, 5, 10]
     for n in client_num:
         clients = self._create_clients(n)
         mclient = IPCRPCMultiProcessClient(clients)
         for c in clients:
             assert c.called is False
         mclient.close()
         for c in clients:
             ok_(c.called and c.called_method == "close")
示例#2
0
 def test_close_multiple_times_closing(self):
     clients = self._create_clients(2)
     mclient = IPCRPCMultiProcessClient(clients)
     mclient.close()  # ok
     mclient.close()  # raises