#NEWLINE# def test_HALNavigator__call( ) : #NEWLINE# #INDENT# with httprettify ( ) : #NEWLINE# #INDENT# uri = 'http://www.example.com/index' #NEWLINE# server_state = dict ( some_attribute = 'some value' ) #NEWLINE# register_hal ( uri = uri , state = server_state , title = 'Example Title' ) #NEWLINE# N = HN . Navigator . hal ( uri ) #NEWLINE# assert ( N . state is None ) #NEWLINE# assert ( N ( ) == N ) #NEWLINE# assert ( N . state == N ( ) ) #NEWLINE# assert ( N . state is not N ( ) ) #NEWLINE# assert ( N ( ) is not N ( ) )