#NEWLINE# def test_get_by_uuid( self ) : #NEWLINE# #INDENT# with mock . patch . object ( db , 'ec2_instance_get_by_uuid' ) as get : #NEWLINE# #INDENT# get . return_value = fake_map #NEWLINE# imap = ec2_obj . EC2InstanceMapping . get_by_uuid ( self . context , 'fake-uuid-2' ) #NEWLINE# self . _compare ( imap , fake_map , imap )