#NEWLINE# @ mock . patch ( 'nova.db.fixed_ip_create' ) #NEWLINE# def test_create( self , create ) : #NEWLINE# #INDENT# create . return_value = fake_fixed_ip #NEWLINE# fixedip = fixed_ip . FixedIP ( context = self . context , address = '1.2.3.4' ) #NEWLINE# fixedip . create ( ) #NEWLINE# create . assert_called_once_with ( self . context , { #NEWLINE# #INDENT# 'address' : '1.2.3.4' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . _compare ( fixedip , fake_fixed_ip )