def test_list_of_strs_or_callables(): f = lambda x: 20 cases = [(['yo'], 'yo'), (['yo'], ['yo']), (['42'], 42), (['42'], [42]), ([f], f), ([f], [f])] for exp, inp in cases: obs = list_of_strs_or_callables(inp) yield assert_equal, exp, obs
def test_list_of_strs_or_callables(): f = lambda x: 20 cases = [(['yo'], 'yo'), (['yo'], ['yo']), (['42'], 42), (['42'], [42]), ([f], f), ([f], [f])] for exp, inp in cases: obs = list_of_strs_or_callables(inp) assert exp == obs
def test_list_of_strs_or_callables(exp, inp): obs = list_of_strs_or_callables(inp) assert exp == obs