#NEWLINE# def test_inheritance( self ) : #NEWLINE# #INDENT# class Bar ( SingletonConfigurable ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# class Bam ( Bar ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . assertEquals ( Bar . initialized ( ) , False ) #NEWLINE# self . assertEquals ( Bam . initialized ( ) , False ) #NEWLINE# bam = Bam . instance ( ) #NEWLINE# ( bam == Bar . instance ( ) ) #NEWLINE# self . assertEquals ( Bar . initialized ( ) , True ) #NEWLINE# self . assertEquals ( Bam . initialized ( ) , True ) #NEWLINE# self . assertEquals ( bam , Bam . _instance ) #NEWLINE# self . assertEquals ( bam , Bar . _instance ) #NEWLINE# self . assertEquals ( SingletonConfigurable . _instance , None )