#NEWLINE# def test_prefix2( self ) : #NEWLINE# #INDENT# cfg = NipapConfig ( '/etc/nipap/nipap.conf' ) #NEWLINE# n = Nipap ( ) #NEWLINE# query = n . _parse_prefix_query ( '1.3.3.0/24' ) #NEWLINE# exp_query = { #NEWLINE# #INDENT# 'interpretation' : { #NEWLINE# #INDENT# 'attribute' : 'prefix' , #NEWLINE# 'interpretation' : 'IPv4 prefix' , #NEWLINE# 'operator' : 'contained_within_equals' , #NEWLINE# 'string' : '1.3.3.0/24' , #NEWLINE# #UNINDENT# } , #NEWLINE# 'operator' : 'contained_within_equals' , #NEWLINE# 'val1' : 'prefix' , #NEWLINE# 'val2' : '1.3.3.0/24' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( query , exp_query )