<s> """<STR_LIT>""" <EOL> from testtools . twistedsupport import SynchronousDeferredRunTest <EOL> from twisted . internet . defer import succeed <EOL> from . . import sequentially <EOL> from . . testtools import ( <EOL> DummyDeployer , ControllableAction , ControllableDeployer , <EOL> ideployer_tests_factory , <EOL> ) <EOL> from ... control import NodeState <EOL> from . istatechange import make_istatechange_tests <EOL> class DummyDeployerIDeployerTests ( <EOL> ideployer_tests_factory ( lambda case : DummyDeployer ( ) ) <EOL> ) : <EOL> """<STR_LIT>""" <EOL> _HOSTNAME = u"<STR_LIT>" <EOL> class ControllableDeployerIDeployerTests ( <EOL> ideployer_tests_factory ( <EOL> lambda case : ControllableDeployer ( <EOL> hostname = _HOSTNAME , <EOL> local_states = [ succeed ( NodeState ( hostname = _HOSTNAME ) ) ] , <EOL> calculated_actions = [ sequentially ( changes = [ ] ) ] , <EOL> ) <EOL> ) <EOL> ) : <EOL> """<STR_LIT>""" <EOL> run_tests_with = SynchronousDeferredRunTest <EOL> class ControllableActionIStateChangeTests ( <EOL> make_istatechange_tests ( <EOL> ControllableAction , <EOL> kwargs1 = dict ( result = <NUM_LIT:1> ) , <EOL> kwargs2 = dict ( result = <NUM_LIT:2> ) , <EOL> ) <EOL> ) : <EOL> """<STR_LIT>""" <EOL> run_tests_with = SynchronousDeferredRunTest </s>
