<s> from __future__ import unicode_literals <EOL> import unittest <EOL> import frappe <EOL> class TestHooks ( unittest . TestCase ) : <EOL> def test_hooks ( self ) : <EOL> hooks = frappe . get_hooks ( ) <EOL> self . assertTrue ( isinstance ( hooks . get ( "<STR_LIT>" ) , list ) ) <EOL> self . assertTrue ( isinstance ( hooks . get ( "<STR_LIT>" ) , dict ) ) <EOL> self . assertTrue ( isinstance ( hooks . get ( "<STR_LIT>" ) . get ( "<STR_LIT:*>" ) , dict ) ) <EOL> self . assertTrue ( isinstance ( hooks . get ( "<STR_LIT>" ) . get ( "<STR_LIT:*>" ) , dict ) ) <EOL> self . assertTrue ( "<STR_LIT>" in <EOL> hooks . get ( "<STR_LIT>" ) . get ( "<STR_LIT:*>" ) . get ( "<STR_LIT>" ) ) </s>
