assert_single_value function

Check variable only has one unique value.