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)
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)