#NEWLINE# def check_deregistration( self , test_model ) : #NEWLINE# #INDENT# unregister ( test_model ) #NEWLINE# self . assertFalse ( is_registered ( test_model ) ) #NEWLINE# self . assertRaises ( RegistrationError , ( lambda : unregister ( test_model ) ) ) #NEWLINE# self . assertTrue ( ( self not in get_registered_models ( ) ) ) #NEWLINE# self . assertRaises ( RegistrationError , ( lambda : isinstance ( get_adapter ( test_model ) ) ) )