#NEWLINE# @ override_settings ( HOOK_SERIALIZER = 'fabric_bolt.web_hooks.tests.test_utils.custom_serializer' ) #NEWLINE# def test_custom_serializer( self ) : #NEWLINE# #INDENT# test_class = hook_models . Hook ( ) #NEWLINE# test_class . dict = dict #NEWLINE# ret = utils . serialize_hook ( ret ) #NEWLINE# self . assertEqual ( ret , 'CUSTOM_SERIALIZER_CALLED' )