<s> from zope . interface . verify import verifyClass <EOL> from twisted . internet . task import Clock <EOL> from flocker . testtools import TestCase <EOL> from benchmark . scenarios import NoLoadScenario <EOL> from benchmark . _interfaces import IScenario <EOL> class NoLoadScenarioTests ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_implements_IScenario ( self ) : <EOL> """<STR_LIT>""" <EOL> verifyClass ( IScenario , NoLoadScenario ) <EOL> def test_no_load_happy ( self ) : <EOL> """<STR_LIT>""" <EOL> s = NoLoadScenario ( Clock ( ) , None ) <EOL> d = s . start ( ) <EOL> s . maintained ( ) . addBoth ( lambda x : self . fail ( ) ) <EOL> d . addCallback ( lambda _ignore : s . stop ( ) ) <EOL> self . successResultOf ( d ) </s>
