#NEWLINE# def test_create( self ) : #NEWLINE# #INDENT# vmap = ec2_obj . EC2VolumeMapping ( context = self . context ) #NEWLINE# vmap . uuid = 'fake-uuid-2' #NEWLINE# with mock . patch . object ( db , 'ec2_volume_create' ) as create : #NEWLINE# #INDENT# create . return_value = fake_map #NEWLINE# vmap . create ( ) #NEWLINE# #UNINDENT# self . assertEqual ( self . context , create . _context ) #NEWLINE# vmap . _context = None #NEWLINE# self . _compare ( self , fake_map , vmap )