Пример #1
0
def test_get_valid_callable_from_callable():
    strat = (lambda: None)
    valid = {"doesn't matter": (lambda: None)}  # not even touched interally
    assert _get_callable(strat, valid)() is None
Пример #2
0
def test_get_valid_callable_from_string():
    strat = "strategy"
    valid = {strat: (lambda: None)}
    assert _get_callable(strat, valid)() is None