#NEWLINE# def test_ip_address_blocking( self ) : #NEWLINE# #INDENT# ip = '1.2.3.4' #NEWLINE# self . assertFalse ( utils . is_source_ip_already_locked ( ip ) ) #NEWLINE# utils . block_ip ( ip ) #NEWLINE# self . assertTrue ( utils . is_source_ip_already_locked ( ip ) ) #NEWLINE# utils . unblock_ip ( ip ) #NEWLINE# self . assertFalse ( utils . is_source_ip_already_locked ( ip ) )