def make_istatechange_tests(klass, kwargs1, kwargs2):
    def instance(kwargs):
        if isinstance(kwargs, dict):
            return klass(**kwargs)
        return klass(**kwargs())

    class Tests(make_comparison_tests(klass, kwargs1, kwargs2)):
        def test_interface(self):
            """
            The class implements ``IStateChange``.
            """
            self.assertTrue(verifyObject(IStateChange, instance(kwargs1)))
    Tests.__name__ = klass.__name__ + "IStateChangeTests"
    return Tests
Get node id
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/test/istatechange.py/make_istatechange_tests--crossover with--dataset/ETHPy150Open nvbn/coviolations_web/nodes/utils.py/NodeConnection.id