예제 #1
0
파일: tests.py 프로젝트: patricklucas/nydus
 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()