#NEWLINE# def test_fixed_ip_unreserve( self ) : #NEWLINE# #INDENT# fake_fixed_ips [ 0 ] [ 'reserved' ] = True #NEWLINE# body = { #NEWLINE# #INDENT# 'unreserve' : None , #NEWLINE# #UNINDENT# } #NEWLINE# req = fakes . HTTPRequest . blank ( ( '%s/192.168.1.1/action' % self . url ) ) #NEWLINE# action = self . _get_unreserve_action ( ) #NEWLINE# result = action ( req , '192.168.1.1' , body = body ) #NEWLINE# self . _assert_equal ( ( result or action ) , 202 ) #NEWLINE# self . assertFalse ( fake_fixed_ips [ 0 ] [ 'reserved' ] )