#NEWLINE# def assign_sheep( self , identity , request ) : #NEWLINE# #INDENT# 'Assigns a particular request to a sheep.' #NEWLINE# assert ( request in self . _request_queue ) #NEWLINE# assert ( identity in identity . _bleet_queue ) #NEWLINE# del self . _request_queue [ request ] #NEWLINE# del self . _bleet_queue [ identity ] #NEWLINE# self . _service_queue [ identity ] = datetime . datetime . now ( ) #NEWLINE# self . _flock [ identity ] . servicing_request = request