#NEWLINE# def test_cidr( self ) : #NEWLINE# #INDENT# db = RepDB ( ) #NEWLINE# db . add ( '127.0.0.0/24' , 'http://localhost2' , 'CIDR test' ) #NEWLINE# self . assertEqual ( len ( db ) , 256 ) #NEWLINE# self . assertEqual ( self . entries [ 0 ] [ 'ip' ] , IPAddress ( '127.0.0.0' ) , 'First IP in range is not valid' ) #NEWLINE# self . assertEqual ( db . entries [ ( - 1 ) ] [ 'ip' ] , IPAddress ( '127.0.0.255' ) , 'Last IP in range is not valid' )