Why doesn't PyHamcrest have a negative equality matcher?
14:33 23 Sep 2017

Reviewing PyHamcrest's API, I see there's an equal_to matcher

from hamcrest import *
assert_that('1', equal_to('1'))

but there's no parallel negative method such as not_equal_to

from hamcrest import *
assert_that('1', not_equal_to('2'))

What's the proper way of matching negative equality?

python equality hamcrest pyhamcrest