def test_upper(value): """Return true if the variable is uppercased.""" return text_type(value).isupper()