#NEWLINE# @ mock . patch ( 'nova.db.fixed_ip_get_by_address' ) #NEWLINE# def test_get_by_address( self , get ) : #NEWLINE# #INDENT# get . return_value = fake_fixed_ip #NEWLINE# fixedip = fixed_ip . FixedIP . get_by_address ( self . context , '1.2.3.4' ) #NEWLINE# get . assert_called_once_with ( self . context , '1.2.3.4' , columns_to_join = [ ] ) #NEWLINE# self . _compare ( fixedip , fake_fixed_ip )