human
Complete this python program:
def make_comparison_tests(klass, kwargs1, kwargs2):
assistant
#Here is the Python code you requested.

    """Create tests to verify a class provides standard ``==`` and ``!=``
    behavior.
    :param klass: Class that implements ``IStateChange``.
    :param kwargs1: Keyword arguments to ``klass``.  Either a ``dict`` or a
    no-argument callable which returns keyword arguments to use.
    :param kwargs2: Keyword arguments to ``klass`` that create different change
    than ``kwargs1``.  Either a ``dict`` or a no-argument callable which
    returns keyword arguments to use.
    :return: ``SynchronousTestCase`` subclass named
    ``<klassname>ComparisonTests``.
    """
    def instance(kwargs):
        if isinstance(kwargs, dict):
            return klass(**kwargs)
        return klass(**kwargs())
    class Tests(TestCase, ):
        def test_equality(self):
            '\n                                                Instances    with    the    same    arguments    are    equal.\n                                                '
            self.assertTrue((instance(kwargs1) == instance(kwargs1)))
            self.assertFalse((instance(kwargs1) == instance(kwargs2)))
        def test_notequality(self):
            '\n                                                Instance    with    different    arguments    are    not    equal.\n                                                '
            self.assertTrue((instance(kwargs1) != instance(kwargs2)))
            self.assertFalse((instance(kwargs1) != instance(kwargs1)))
    Tests.__name__ = (klass.__name__ + 'ComparisonTests')
    return Tests