本文整理汇总了Python中collective.cover.tiles.base.IPersistentCoverTile.implementedBy方法的典型用法代码示例。如果您正苦于以下问题:Python IPersistentCoverTile.implementedBy方法的具体用法?Python IPersistentCoverTile.implementedBy怎么用?Python IPersistentCoverTile.implementedBy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类collective.cover.tiles.base.IPersistentCoverTile
的用法示例。
在下文中一共展示了IPersistentCoverTile.implementedBy方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_interface
# 需要导入模块: from collective.cover.tiles.base import IPersistentCoverTile [as 别名]
# 或者: from collective.cover.tiles.base.IPersistentCoverTile import implementedBy [as 别名]
def test_interface(self):
self.assertTrue(IPersistentCoverTile.implementedBy(ListFolderContentsTile))
self.assertTrue(verifyClass(IPersistentCoverTile, ListFolderContentsTile))
tile = ListFolderContentsTile(None, None)
self.assertTrue(IPersistentCoverTile.providedBy(tile))
self.assertTrue(verifyObject(IPersistentCoverTile, tile))
示例2: test_interface
# 需要导入模块: from collective.cover.tiles.base import IPersistentCoverTile [as 别名]
# 或者: from collective.cover.tiles.base.IPersistentCoverTile import implementedBy [as 别名]
def test_interface(self):
self.assertTrue(IPersistentCoverTile.implementedBy(CarouselTile))
self.assertTrue(verifyClass(IPersistentCoverTile, CarouselTile))
tile = CarouselTile(None, None)
self.assertTrue(IPersistentCoverTile.providedBy(tile))
self.assertTrue(verifyObject(IPersistentCoverTile, tile))
示例3: test_interface
# 需要导入模块: from collective.cover.tiles.base import IPersistentCoverTile [as 别名]
# 或者: from collective.cover.tiles.base.IPersistentCoverTile import implementedBy [as 别名]
def test_interface(self):
self.assertTrue(IPersistentCoverTile.implementedBy(PhotoGalleryTile))
self.assertTrue(verifyClass(IPersistentCoverTile, PhotoGalleryTile))
tile = PhotoGalleryTile(None, None)
self.assertTrue(IPersistentCoverTile.providedBy(tile))
self.assertTrue(verifyObject(IPersistentCoverTile, tile))
示例4: test_interface
# 需要导入模块: from collective.cover.tiles.base import IPersistentCoverTile [as 别名]
# 或者: from collective.cover.tiles.base.IPersistentCoverTile import implementedBy [as 别名]
def test_interface(self):
self.assertTrue(IPersistentCoverTile.implementedBy(BannerTile))
self.assertTrue(verifyClass(IPersistentCoverTile, BannerTile))
tile = BannerTile(None, None)
self.assertTrue(IPersistentCoverTile.providedBy(tile))
# FIXME: @property decorator on class methods makes this test fail
# how can we fix it?
self.assertTrue(verifyObject(IPersistentCoverTile, tile))
示例5: test_interface
# 需要导入模块: from collective.cover.tiles.base import IPersistentCoverTile [as 别名]
# 或者: from collective.cover.tiles.base.IPersistentCoverTile import implementedBy [as 别名]
def test_interface(self):
self.assertTrue(IPersistentCoverTile.implementedBy(PersistentCoverTile))
self.assertTrue(verifyClass(IPersistentCoverTile, PersistentCoverTile))
# cover tiles inherit from plone.tile PersistentTile
self.assertTrue(IPersistentTile.implementedBy(PersistentCoverTile))
tile = PersistentCoverTile(None, None)
self.assertTrue(IPersistentCoverTile.providedBy(tile))
self.assertTrue(verifyObject(IPersistentCoverTile, tile))
# cover tiles inherit from plone.tile PersistentTile
self.assertTrue(IPersistentTile.providedBy(tile))
示例6: test_interface
# 需要导入模块: from collective.cover.tiles.base import IPersistentCoverTile [as 别名]
# 或者: from collective.cover.tiles.base.IPersistentCoverTile import implementedBy [as 别名]
def test_interface(self):
self.assertTrue(IPersistentCoverTile.implementedBy(BannerTile))
self.assertTrue(verifyClass(IPersistentCoverTile, BannerTile))
tile = BannerTile(None, None)
self.assertTrue(IPersistentCoverTile.providedBy(tile))
示例7: test_interface
# 需要导入模块: from collective.cover.tiles.base import IPersistentCoverTile [as 别名]
# 或者: from collective.cover.tiles.base.IPersistentCoverTile import implementedBy [as 别名]
def test_interface(self):
self.assertTrue(IPersistentCoverTile.implementedBy(ICarrosselTile))