__init__.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:facebook-face-recognition 作者: mathur 项目源码 文件源码
def testFeatureOptions(self):
        dist = self.dist
        assert (
            ('with-dwim',None,'include DWIM') in dist.feature_options
        )
        assert (
            ('without-dwim',None,'exclude DWIM (default)') in dist.feature_options
        )
        assert (
            ('with-bar',None,'include bar (default)') in dist.feature_options
        )
        assert (
            ('without-bar',None,'exclude bar') in dist.feature_options
        )
        assert dist.feature_negopt['without-foo'] == 'with-foo'
        assert dist.feature_negopt['without-bar'] == 'with-bar'
        assert dist.feature_negopt['without-dwim'] == 'with-dwim'
        assert (not 'without-baz' in dist.feature_negopt)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号