def test_exclude_columns():
 table = UnorderedTable([], exclude=u'i')
 assert (table.columns.names() == [u'alpha', u'beta'])
 class PartialTable(UnorderedTable, ):
  class Meta:
   exclude = (u'alpha',)
 table = PartialTable([])
 assert (table.columns.names() == [u'i', u'beta'])
 class AddonTable(PartialTable, ):
  added = tables.Column()
 table = AddonTable([])
 assert (table.columns.names() == [u'i', u'beta', u'added'])
 class ExcludeTable(UnorderedTable, ):
  added = tables.Column()
  class Meta:
   exclude = (u'beta',)
 table = ExcludeTable([])
 assert (table.columns.names() == [u'i', u'alpha', u'added'])

def test_exclude_columns ( ) : table = UnorderedTable ( [ ] , exclude = u'i' ) assert ( table . columns . names ( ) == [ u'alpha' , u'beta' ] ) class PartialTable ( UnorderedTable , ) : class Meta : exclude = ( u'alpha' , ) table = PartialTable ( [ ] ) assert ( table . columns . names ( ) == [ u'i' , u'beta' ] ) class AddonTable ( PartialTable , ) : added = tables . Column ( ) table = AddonTable ( [ ] ) assert ( table . columns . names ( ) == [ u'i' , u'beta' , u'added' ] ) class ExcludeTable ( UnorderedTable , ) : added = tables . Column ( ) class Meta : exclude = ( u'beta' , ) table = ExcludeTable ( [ ] ) assert ( table . columns . names ( ) == [ u'i' , u'alpha' , u'added' ] )
defining table .