#NEWLINE# def test_instance_default_manager( self ) : #NEWLINE# #INDENT# def show_default_manager( instance ) : #NEWLINE# #INDENT# return '{0} {1}' . format ( repr ( type ( instance . _default_manager ) ) , repr ( instance . _default_manager . model ) ) #NEWLINE# #UNINDENT# plain_a = PlainA ( field1 = 'C1' ) #NEWLINE# plain_b = PlainB ( field2 = 'C1' ) #NEWLINE# plain_c = PlainC ( field3 = 'C1' ) #NEWLINE# model_2a = Model2A ( field1 = 'C1' ) #NEWLINE# model_2b = Model2B ( field2 = 'C1' ) #NEWLINE# model_2c = Model2C ( field3 = 'C1' ) #NEWLINE# self . assertEqual ( show_default_manager ( plain_a ) , "<class 'django.db.models.manager.Manager'> <class 'polymorphic.tests.PlainA'>" ) #NEWLINE# self . assertEqual ( show_default_manager ( plain_b ) , "<class 'django.db.models.manager.Manager'> <class 'polymorphic.tests.PlainB'>" ) #NEWLINE# self . assertEqual ( show_default_manager ( plain_c ) , "<class 'django.db.models.manager.Manager'> <class 'polymorphic.tests.PlainC'>" ) #NEWLINE# self . assertEqual ( show_default_manager ( model_2a ) , "<class 'polymorphic.managers.PolymorphicManager'> <class 'polymorphic.tests.Model2A'>" ) #NEWLINE# self . assertEqual ( show_default_manager ( model_2b ) , "<class 'polymorphic.managers.PolymorphicManager'> <class 'polymorphic.tests.Model2B'>" ) #NEWLINE# self . assertEqual ( show_default_manager ( model_2c ) , "<class 'polymorphic.managers.PolymorphicManager'> <class 'polymorphic.tests.Model2C'>" )