#NEWLINE# def test_meta_exclude( self ) : #NEWLINE# #INDENT# class TestModelDataset ( ModelDataset ) : #NEWLINE# #INDENT# class Meta ( ) : #NEWLINE# #INDENT# model = TestModel #NEWLINE# exclude = [ 'id' ] #NEWLINE# #UNINDENT# #UNINDENT# data = TestModelDataset ( ) #NEWLINE# self . assertEqual ( len ( data . headers ) , 1 ) #NEWLINE# self . assertFalse ( ( 'id' in data . headers ) ) #NEWLINE# self . assertTrue ( ( 'field1' in data . headers ) )