def test_HALNavigator__not_json():
    with httprettify() as HTTPretty:
        index_uri = 'http://www.example.com/api/'
        html = '<p>\n\tThis is not JSON\n</p>'
        HTTPretty.register_uri(
            'GET',
            index_uri,
            body=html,
            content_type='application/hal+json',
        )

        N = HN.Navigator.hal(index_uri)
        with pytest.raises(UnexpectedlyNotJSON):
            N()
Assigning to a global and then not using that global is perfectly
dataset/ETHPy150Open deontologician/restnavigator/tests/test_hal_nav.py/test_HALNavigator__not_json--crossover with--dataset/ETHPy150Open kevinw/pyflakes/pyflakes/test/test_other.py/TestUnusedAssignment.test_assignToGlobal