Example #1
0
 def test_disconnect(self):
     c = Mock()
     p = Cluster(
         hosts={0: c},
     )
     p.disconnect()
     c.disconnect.assert_called_once()
Example #2
0
 def test_disconnect(self):
     c = Mock()
     p = Cluster(hosts={0: c}, )
     p.disconnect()
     c.disconnect.assert_called_once()