#NEWLINE# def test_copy_subclass( self ) : #NEWLINE# #INDENT# class MyCounter ( Counter ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# c = MyCounter ( 'slartibartfast' ) #NEWLINE# d = c . copy ( ) #NEWLINE# self . assertEqual ( d , c ) #NEWLINE# self . assertEqual ( len ( c ) , len ( c ) ) #NEWLINE# self . assertEqual ( type ( d ) , type ( c ) )