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