test_custom_fields.py 文件源码

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

项目:eq-survey-runner 作者: ONSdigital 项目源码 文件源码
def test_decimal_field(self):
        decimal_field = CustomDecimalField(_form=self.mock_form, _name='aName')
        self.assertIsInstance(decimal_field, Field)

        try:
            decimal_field.process_formdata(['NonDecimal'])
        except:
            self.fail("Exception should not be thrown by CustomDecimalField")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号