Example #1
0
 def test_parseVolumeRebalanceStatus(self):
     with open("glusterVolumeRebalanceStatus.xml") as f:
         out = f.read()
     tree = etree.fromstring(out)
     status = gcli._parseVolumeRebalanceRemoveBrickStatus(tree, 'rebalance')
     self.assertEquals(status,
                       glusterTestData.REBALANCE_REMOVE_BRICK_STATUS)
Example #2
0
 def test_parseVolumeRebalanceStatus(self):
     with open("glusterVolumeRebalanceStatus.xml") as f:
         out = f.read()
     tree = etree.fromstring(out)
     status = gcli._parseVolumeRebalanceRemoveBrickStatus(tree, 'rebalance')
     self.assertEquals(status,
                       glusterTestData.REBALANCE_REMOVE_BRICK_STATUS)