Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/a/n/AnyValid-1.0.0/test/test_any_valid.py   AnyValid(Download)
# coding=utf-8
from mock import Mock
from any_valid import AnyValid, Int, OneOf
 
 
         [(-3, True), (0, True), (123, False), (None, False), ('2', True)]),
    ]:
        valid_input = AnyValid(Int(**kw_args))
        for value, expected_success in sub_tests:
            yield check_valid_1_param, valid_input, value, expected_success
         [(0, True), (1, True), (2, True), (3, False), ('2', False)]),
    ]:
        valid_input = AnyValid(OneOf(items))
        for value, expected_success in sub_tests:
            yield check_valid_1_param, valid_input, value, expected_success