예제 #1
0
파일: vmApiTests.py 프로젝트: myOvirt/vdsm
 def _getAPI(self):
     testPath = os.path.realpath(__file__)
     dirName = os.path.split(testPath)[0]
     apiPath = os.path.join(
         dirName, '..', 'vdsm', 'rpc', 'vdsmapi-schema.json')
     return vdsmapi.get_api(apiPath)
예제 #2
0
파일: vmApiTests.py 프로젝트: oVirtorg/vdsm
 def _getAPI(self):
     testPath = os.path.realpath(__file__)
     dirName = os.path.split(testPath)[0]
     apiPath = os.path.join(dirName, '..', 'vdsm', 'rpc',
                            'vdsmapi-schema.json')
     return vdsmapi.get_api(apiPath)
예제 #3
0
 def testSchemaParse(self):
     self.assertTrue(isinstance(vdsmapi.get_api(), dict))
예제 #4
0
 def testSchemaParse(self):
     self.assertTrue(isinstance(vdsmapi.get_api(), dict))