#NEWLINE# def testIpInListWhenIpNotInList( self ) : #NEWLINE# #INDENT# 'Tests IpInList() with an IP not in the lists.' #NEWLINE# self . mox . StubOutWithMock ( models . util , 'Deserialize' ) #NEWLINE# self . mox . StubOutWithMock ( self . cls , 'MemcacheWrappedGet' ) #NEWLINE# ip = '1.2.3.4' #NEWLINE# deserialized = [ '192.168.0.0/16' ] #NEWLINE# self . cls . MemcacheWrappedGet ( self . key , 'text_value' ) . AndReturn ( 'serialized' ) #NEWLINE# models . util . Deserialize ( 'serialized' ) . AndReturn ( deserialized ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertFalse ( self . cls . IpInList ( self . key , ip ) ) #NEWLINE# self . mox . VerifyAll ( )