Esempio n. 1
0
 def test_version(self):
     '''
     Test for Return the cassandra version
     '''
     mock = MagicMock(return_value='A')
     with patch.object(cassandra, '_nodetool', mock):
         self.assertEqual(cassandra.version(), 'A')
Esempio n. 2
0
 def test_version(self):
     """
     Test for Return the cassandra version
     """
     mock = MagicMock(return_value="A")
     with patch.object(cassandra, "_nodetool", mock):
         self.assertEqual(cassandra.version(), "A")
Esempio n. 3
0
 def test_version(self):
     """
     Test for Return the cassandra version
     """
     mock = MagicMock(return_value="A")
     with patch.object(cassandra, "_nodetool", mock):
         self.assertEqual(cassandra.version(), "A")
Esempio n. 4
0
 def test_version(self):
     '''
     Test for Return the cassandra version
     '''
     mock = MagicMock(return_value='A')
     with patch.object(cassandra, '_nodetool', mock):
         self.assertEqual(cassandra.version(), 'A')