<s> """<STR_LIT>""" <EOL> from twisted . internet . task import Clock <EOL> from twisted . internet . defer import maybeDeferred <EOL> from benchmark . metrics import WallClock <EOL> from flocker . testtools import TestCase <EOL> class WallClockTests ( TestCase ) : <EOL> def test_wallclock ( self ) : <EOL> """<STR_LIT>""" <EOL> clock = Clock ( ) <EOL> wallclock = WallClock ( clock , None ) <EOL> d = wallclock . measure ( maybeDeferred , clock . advance , <NUM_LIT> ) <EOL> self . assertEqual ( self . successResultOf ( d ) , <NUM_LIT> ) </s>
