Example #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()
Example #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()
Example #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()
Example #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()