#NEWLINE# @ pytest . mark . skipif ( ( sys . version_info >= ( 3 , 0 , 0 ) ) , reason = 'HTTPretty wrongly returns an error for python3' ) #NEWLINE# @ pytest . mark . parametrize ( ( 'status' , 'boolean' ) , [ ( 200 , True ) , ( 300 , True ) , ( 400 , False ) , ( 500 , False ) ] ) #NEWLINE# def test_HALNavigator__boolean( status , boolean ) : #NEWLINE# #INDENT# with httprettify ( ) : #NEWLINE# #INDENT# register_hal ( status = status ) #NEWLINE# N = HN . Navigator . hal ( 'http://www.example.com/' ) #NEWLINE# N ( raise_exc = False ) #NEWLINE# if boolean : #NEWLINE# #INDENT# assert status #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert ( not N )