Exemplo n.º 1
0
 def test_compactionstats(self):
     '''
     Test for Return compactionstats info
     '''
     mock = MagicMock(return_value='A')
     with patch.object(cassandra, '_nodetool', mock):
         self.assertEqual(cassandra.compactionstats(), 'A')
Exemplo n.º 2
0
 def test_compactionstats(self):
     """
     Test for Return compactionstats info
     """
     mock = MagicMock(return_value="A")
     with patch.object(cassandra, "_nodetool", mock):
         self.assertEqual(cassandra.compactionstats(), "A")
Exemplo n.º 3
0
 def test_compactionstats(self):
     """
     Test for Return compactionstats info
     """
     mock = MagicMock(return_value="A")
     with patch.object(cassandra, "_nodetool", mock):
         self.assertEqual(cassandra.compactionstats(), "A")
Exemplo n.º 4
0
 def test_compactionstats(self):
     '''
     Test for Return compactionstats info
     '''
     mock = MagicMock(return_value='A')
     with patch.object(cassandra, '_nodetool', mock):
         self.assertEqual(cassandra.compactionstats(), 'A')