tomchristie/django-rest-framework — pull request #607 by bennullgraham (2013-01-23 09:54:28+00:00)
Title: Failing Test Case for #606 "Support for Hyperlinked Generic Relationships"

Caveats:

- The test is against `ManyHyperlinkedRelatedField` - this suggests the implementation to some degree, which I don't intend. As much as anything else, this is just by way of contrast against the other test in `genericrelations.py`, which uses `ManyRelatedField`.

- If the correct `view_name` is given to the `ManyHyperlinkedRelatedField`
('bookmarks-detail'), the test passes, though of course this is only
because the test relationship is a Bookmark. When it does work,
the hyperlinks don't contain a protocol or hostname ("http://testserver/..."). I
assume this is because no real request/response context exists, but I don't have a lot of experience with testing request/response.

I have not specified something via the medium of failing test case before, so any critique is welcome. Also, critique of my shitty Python is fine.