def test_cluster_plan(self): ''' Test for Review Cluster Plan ''' with patch.dict(riak.__salt__, {'cmd.run': MagicMock(return_value=False)}): self.assertTrue(riak.cluster_plan())
def test_cluster_plan(self): """ Test for Review Cluster Plan """ with patch.object( riak, "__execute_cmd", return_value={"retcode": 0, "stdout": "success"} ): self.assertTrue(riak.cluster_plan())
def test_cluster_plan(self): ''' Test for Review Cluster Plan ''' with patch.object(riak, '__execute_cmd', return_value={ 'retcode': 0, 'stdout': 'success' }): self.assertTrue(riak.cluster_plan())
def test_cluster_plan(self): ''' Test for Review Cluster Plan ''' with patch.object(riak, '__execute_cmd', return_value={'retcode': 0, 'stdout': 'success'}): self.assertTrue(riak.cluster_plan())