(self, request)
return json.dumps({
            "advanced": amount,
            "now": seconds_to_timestamp(self.clock.seconds())
        })
Advance time by the given number of seconds.
Advance time by the given number of seconds.
Advance time by the given number of seconds .
def advance_time(self, request):
        """
        Advance time by the given number of seconds.
        """
        body = json_from_request(request)
        amount = body['amount']
        self.clock.advance(amount)
        request.setResponseCode(200)
        return json.dumps({
            "advanced": amount,
            "now": seconds_to_timestamp(self.clock.seconds())
        })
def advance_time ( self , request ) : body = json_from_request ( request ) amount = body [ 'amount' ] self . clock . advance ( amount ) request . setResponseCode ( 200 ) return json . dumps ( { "advanced" : amount , "now" : seconds_to_timestamp ( self . clock . seconds ( ) ) } )