def test_independent_pools(self):
        p = _Pool(None, None)
        self.assertEqual([], p.sockets)
        self.c.end_request()
        self.assertEqual([], p.sockets)

        # Sensical values aren't really important here
        p1 = _Pool(5, 32)
        self.assertEqual(None, p.socket_factory)
        self.assertEqual(5, p1.socket_factory)
Beispiel #2
0
    def test_independent_pools(self):
        p = _Pool(None)
        self.assertEqual([], p.sockets)
        self.c.end_request()
        self.assertEqual([], p.sockets)

        # Sensical values aren't really important here
        p1 = _Pool(5)
        self.assertEqual(None, p.socket_factory)
        self.assertEqual(5, p1.socket_factory)
 def test_independent_pools(self):
     p = _Pool(10, 0)
     self.assertEqual([], p.sockets)
     self.c.end_request()
     self.assertEqual([], p.sockets)
Beispiel #4
0
 def test_independent_pools(self):
     p = _Pool(10, 0)
     self.assertEqual([], p.sockets)
     self.c.end_request()
     self.assertEqual([], p.sockets)