def test_expand_case_matching(): cases = { 'yo': '[Yy][Oo]', '[a-f]123e': '[a-f]123[Ee]', '${HOME}/yo': '${HOME}/[Yy][Oo]', './yo/mom': './[Yy][Oo]/[Mm][Oo][Mm]', 'Eßen': '[Ee][Ss]?[Ssß][Ee][Nn]', } for inp, exp in cases.items(): obs = expand_case_matching(inp) yield assert_equal, exp, obs
def test_expand_case_matching(): cases = { 'yo': '[Yy][Oo]', '[a-f]123e': '[a-f]123[Ee]', '${HOME}/yo': '${HOME}/[Yy][Oo]', './yo/mom': './[Yy][Oo]/[Mm][Oo][Mm]', 'Eßen': '[Ee][Ss]?[Ssß][Ee][Nn]', } for inp, exp in cases.items(): obs = expand_case_matching(inp) assert exp == obs
def test_expand_case_matching(inp, exp): obs = expand_case_matching(inp) assert exp == obs