#NEWLINE# def test_slots_new( self ) : #NEWLINE# #INDENT# class A ( object ) : #NEWLINE# #INDENT# __slots__ = ( 'foo' , 'bar' ) #NEWLINE# #UNINDENT# class B ( A ) : #NEWLINE# #INDENT# __slots__ = ( 'gak' , ) #NEWLINE# #UNINDENT# class C ( B ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# class D ( C , B ) : #NEWLINE# #INDENT# __slots__ = ( 'spam' , ) #NEWLINE# #UNINDENT# a = ClassAlias ( A ) #NEWLINE# self . assertFalse ( a . dynamic ) #NEWLINE# self . assertEqual ( a . encodable_properties , [ 'bar' , 'foo' ] ) #NEWLINE# self . assertEqual ( a . decodable_properties , [ 'bar' , 'foo' ] ) #NEWLINE# b = ClassAlias ( B ) #NEWLINE# self . assertFalse ( b . dynamic ) #NEWLINE# self . assertEqual ( b . encodable_properties , [ 'bar' , 'foo' , 'gak' ] ) #NEWLINE# self . assertEqual ( b . decodable_properties , [ 'bar' , 'foo' , 'gak' ] ) #NEWLINE# c = ClassAlias ( C ) #NEWLINE# self . assertTrue ( c . dynamic ) #NEWLINE# self . assertEqual ( c . encodable_properties , [ 'bar' , 'foo' , 'gak' ] ) #NEWLINE# self . assertEqual ( c . decodable_properties , [ 'bar' , 'foo' , 'gak' ] ) #NEWLINE# d = ClassAlias ( D ) #NEWLINE# self . assertTrue ( d . dynamic ) #NEWLINE# self . assertEqual ( d . encodable_properties , [ 'bar' , 'foo' , 'gak' , 'spam' ] ) #NEWLINE# self . assertEqual ( a . decodable_properties , [ 'bar' , 'foo' , 'gak' , 'spam' ] )