Add Validations for equals()
and not_equals()
#1952
Merged
equals()
and not_equals()
#1952