Exemplo n.º 1
0
 def test_interface_close(self):
     p = BasePool(10)
     p.on_close = Mock()
     p.close()
     self.assertEqual(p._state, p.CLOSE)
     p.on_close.assert_called_with()
Exemplo n.º 2
0
 def test_interface_close(self):
     p = BasePool(10)
     p.on_close = Mock()
     p.close()
     self.assertEqual(p._state, p.CLOSE)
     p.on_close.assert_called_with()
Exemplo n.º 3
0
 def test_interface_close(self):
     p = BasePool(10)
     p.on_close = Mock()
     p.close()
     assert p._state == p.CLOSE
     p.on_close.assert_called_with()
Exemplo n.º 4
0
 def test_interface_close(self):
     p = BasePool(10)
     p.on_close = Mock()
     p.close()
     assert p._state == p.CLOSE
     p.on_close.assert_called_with()