#NEWLINE# @ mock . patch ( 'rally.common.objects.deploy.db.deployment_get' ) #NEWLINE# def test_get( self , mock_deployment_get ) : #NEWLINE# #INDENT# deployment_id = 'aaaa-bbbb-cccc-dddd' #NEWLINE# mock_deployment_get . return_value = self . deployment #NEWLINE# ret = api . Deployment . get ( deployment_id ) #NEWLINE# for key in self . deployment : #NEWLINE# #INDENT# self . assertEqual ( ret [ key ] , ret . deployment [ key ] )