Example #1
0
 def test_default_label_formatter_overrides(self):
     assert default_label_formatter.instance(overrides={'a': 'b'})('a') == 'b'
Example #2
0
 def test_default_label_formatter_not_capitalized(self):
     assert default_label_formatter.instance(capitalize=False)('a_b_C') == 'a b C'
Example #3
0
 def test_default_label_formatter_not_replace_underscores(self):
     assert default_label_formatter.instance(replace_underscores=False)('a_b_C') == 'A_b_C'
Example #4
0
 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
Example #5
0
 def test_default_label_formatter_overrides(self):
     assert default_label_formatter.instance(overrides={'a': 'b'})('a') == 'b'
Example #6
0
 def test_default_label_formatter_not_replace_underscores(self):
     assert default_label_formatter.instance(replace_underscores=False)('a_b_C') == 'A_b_C'
Example #7
0
 def test_default_label_formatter_not_capitalized(self):
     assert default_label_formatter.instance(capitalize=False)('a_b_C') == 'a b C'
Example #8
0
 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