Use str.isupper() to test if a string is uppercased.