'If a matching view cannot be reversed with the given instance,
the the user has misconfigured something, as the URL conf and the
hyperlinked field do not match.'

def test_improperly_configured(self):

    self.field.reverse = fail_reverse
    with pytest.raises(ImproperlyConfigured):
        self.field.to_representation(self.instance)
