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):
   '\n            The class implements ``IStateChange``.\n            '
   self.assertTrue(verifyObject(IStateChange, instance(kwargs1)))
 Tests.__name__ = (klass.__name__ + 'IStateChangeTests')
 return Tests

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 ) : self . assertTrue ( verifyObject ( IStateChange , instance ( kwargs1 ) ) ) Tests . __name__ = ( klass . __name__ + 'IStateChangeTests' ) return Tests
create tests to verify a class provides istatechange .