#NEWLINE# def test_validate( self ) : #NEWLINE# #INDENT# fixture = self . model . objects . create ( name = self . id ( ) ) #NEWLINE# form = self . form ( http . QueryDict ( ( 'name=%s&test=%s' % ( self . id ( ) , self . get_value ( fixture ) ) ) ) ) #NEWLINE# form . fields [ 'test' ] . queryset = QuerySetSequence ( self . model . objects . exclude ( pk = fixture . pk ) ) #NEWLINE# self . assertFalse ( form . is_valid ( ) )