def test_default_label_formatter_overrides(self): assert default_label_formatter.instance(overrides={'a': 'b'})('a') == 'b'
def test_default_label_formatter_not_capitalized(self): assert default_label_formatter.instance(capitalize=False)('a_b_C') == 'a b C'
def test_default_label_formatter_not_replace_underscores(self): assert default_label_formatter.instance(replace_underscores=False)('a_b_C') == 'A_b_C'
def test_label_custom_format(self): param.parameterized.label_formatter = default_label_formatter.instance(capitalize=False) t = TestPO() assert t.param.params('ro_format').label == 'ro format' param.parameterized.label_formatter = default_label_formatter