#NEWLINE# def test_private_view_case_3_ptr( self ) : #NEWLINE# #INDENT# ptr = PTR ( name = 'asf3' , ip_str = '10.0.0.2' , ip_type = '4' ) #NEWLINE# ptr . clean ( ) #NEWLINE# ptr . save ( ) #NEWLINE# ptr . views . add ( self . private ) #NEWLINE# ptr . save ( ) #NEWLINE# ptr . views . add ( self . public ) #NEWLINE# self . assertFalse ( ptr . views . filter ( name = 'public' ) ) #NEWLINE# ptr = PTR ( name = 'asf3' , ip_str = '172.16.0.1' , ip_type = '4' ) #NEWLINE# ptr . clean ( ) #NEWLINE# ptr . save ( ) #NEWLINE# ptr . views . add ( self . private ) #NEWLINE# ptr . save ( ) #NEWLINE# ptr . views . add ( self . public ) #NEWLINE# self . assertFalse ( ptr . views . filter ( name = 'public' ) ) #NEWLINE# ptr = PTR ( name = 'asf3' , ip_str = '192.168.2.3' , ip_type = '4' ) #NEWLINE# ptr . clean ( ) #NEWLINE# ptr . save ( ) #NEWLINE# ptr . views . add ( self . private ) #NEWLINE# ptr . save ( ) #NEWLINE# ptr . views . add ( self . public ) #NEWLINE# self . assertFalse ( ptr . views . filter ( name = 'public' ) )