def test_split_compound(): """Test formatters.split_compound.""" from blessed.formatters import split_compound assert split_compound(u'') == [u''] assert split_compound(u'a_b_c') == [u'a', u'b', u'c'] assert split_compound(u'a_on_b_c') == [u'a', u'on_b', u'c'] assert split_compound(u'a_bright_b_c') == [u'a', u'bright_b', u'c'] assert split_compound(u'a_on_bright_b_c') == [u'a', u'on_bright_b', u'c']