def METHOD_NAME(self, check, str1, str2, expect=True):
    if expect:
        message = 'expecting %r to equal %r'
    else:
        message = 'expecting %r to not equal %r'
    self.assertEqual(bool(check(str1, str2)), expect, message % (str1, str2))
    self.assertEqual(bool(check(str2, str1)), expect, message % (str2, str1))