#NEWLINE# def test_creating_instance( self ) : #NEWLINE# #INDENT# class F ( FilterSet ) : #NEWLINE# #INDENT# class Meta ( ) : #NEWLINE# #INDENT# model = User #NEWLINE# fields = [ 'username' ] #NEWLINE# #UNINDENT# #UNINDENT# f = F ( ) #NEWLINE# self . assertFalse ( f . is_bound ) #NEWLINE# self . assertIsNotNone ( f . queryset ) #NEWLINE# self . assertEqual ( len ( f . filters ) , len ( F . base_filters ) ) #NEWLINE# for ( name , filter_ ) in f . filters . items ( ) : #NEWLINE# #INDENT# self . assertEqual ( filter_ . model , User , ( '%s does not have model set correctly' % name ) )