当前位置: 首页>>代码示例>>Python>>正文


Python IPersistentCoverTile.implementedBy方法代码示例

本文整理汇总了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))
开发者ID:liberiun,项目名称:liberiun.govtiles,代码行数:9,代码来源:test_listfoldercontents.py

示例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))
开发者ID:numahell,项目名称:collective.cover,代码行数:9,代码来源:test_carousel_tile.py

示例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))
开发者ID:plonegovbr,项目名称:brasil.gov.tiles,代码行数:9,代码来源:test_photogallery_tile.py

示例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))
开发者ID:a-pasquale,项目名称:collective.cover,代码行数:11,代码来源:test_banner_tile.py

示例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))
开发者ID:Adniel,项目名称:collective.cover,代码行数:13,代码来源:test_base_tile.py

示例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))
开发者ID:plonegovbr,项目名称:brasil.gov.tiles,代码行数:8,代码来源:test_banner.py

示例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))
开发者ID:prodamspsites,项目名称:prodam.tiles,代码行数:4,代码来源:test_carrossel_tile.py


注:本文中的collective.cover.tiles.base.IPersistentCoverTile.implementedBy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。