Exemplo n.º 1
0
 def test_test(self):
     '''
     Test the Riak test
     '''
     with patch.object(riak, '__execute_cmd', return_value={'retcode': 0, 'stdout': 'success'}):
         self.assertEqual(
             riak.test(), {'success': True, 'comment': 'success'}
         )
Exemplo n.º 2
0
 def test_test(self):
     """
     Test the Riak test
     """
     with patch.object(
         riak, "__execute_cmd", return_value={"retcode": 0, "stdout": "success"}
     ):
         self.assertEqual(riak.test(), {"success": True, "comment": "success"})