コード例 #1
0
ファイル: gluster_cli_tests.py プロジェクト: yingyun001/vdsm
 def test_parseVolumeSnapshotList(self):
     with open("glusterVolumeSnapshotList.xml") as f:
         out = f.read()
     tree = etree.fromstring(out)
     gcli._TIME_ZONE = "IST"
     status = gcli._parseVolumeSnapshotList(tree)
     self.assertEquals(status, glusterTestData.GLUSTER_VOLUME_SNAPSHOT_LIST)
コード例 #2
0
ファイル: gluster_cli_tests.py プロジェクト: yingyun001/vdsm
 def test_parseVolumeSnapshotListEmpty(self):
     with open("glusterVolumeSnapshotListEmpty.xml") as f:
         out = f.read()
     tree = etree.fromstring(out)
     gcli._TIME_ZONE = "IST"
     status = gcli._parseVolumeSnapshotList(tree)
     expected = {}
     self.assertEquals(status, expected)