def test_DomainManagerId(self):
self.assertNotEqual(self._domMgr, None)
# Load the ID from the XML file
dom = minidom.parse(os.path.join(scatest.getSdrPath(), "dom/domain/DomainManager.dmd.xml"))
expectedId = dom.getElementsByTagName("domainmanagerconfiguration")[0].getAttribute("id")
providedId = self._domMgr._get_identifier()
self.assertEqual(providedId, expectedId, msg="Violation of SR:213 and/or SR:214")
# According to SCA section D.8.1, the id is supposed to be a DCE UUID
self.assertIsDceUUID(expectedId, msg="Violation of SCA D.8.1")
test_01_DomainManager.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录