本文整理汇总了Python中omero_model_ImageI.ImageI.getAnnotationLinks方法的典型用法代码示例。如果您正苦于以下问题:Python ImageI.getAnnotationLinks方法的具体用法?Python ImageI.getAnnotationLinks怎么用?Python ImageI.getAnnotationLinks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类omero_model_ImageI.ImageI
的用法示例。
在下文中一共展示了ImageI.getAnnotationLinks方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testGetAttrBad
# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import getAnnotationLinks [as 别名]
def testGetAttrBad(self):
i = ImageI()
def assign_loaded():
i.loaded = False
self.assertRaises( AttributeError, assign_loaded )
self.assertRaises( AttributeError, lambda: i.foo )
def assign_foo():
i.foo = 1
self.assertRaises( AttributeError, assign_foo )
self.assertRaises( AttributeError, lambda: i.annotationLinks )
self.assertRaises( AttributeError, lambda: i.getAnnotationLinks() )
def assign_links():
i.annotationLinks = []
self.assertRaises( AttributeError, assign_links)
示例2: testGetAttrBad
# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import getAnnotationLinks [as 别名]
def testGetAttrBad(self):
i = ImageI()
def assign_loaded():
i.loaded = False
pytest.raises( AttributeError, assign_loaded )
pytest.raises( AttributeError, lambda: i.foo )
def assign_foo():
i.foo = 1
pytest.raises( AttributeError, assign_foo )
pytest.raises( AttributeError, lambda: i.annotationLinks )
pytest.raises( AttributeError, lambda: i.getAnnotationLinks() )
def assign_links():
i.annotationLinks = []
pytest.raises( AttributeError, assign_links)