'Regression test for #2711'

def test_non_api_url_is_properly_reversed_regardless_of_the_version(self):

    field = self._create_field('non-api-view', 'v1')
    assert (field.to_representation(PKOnlyObject(10)) == 'http://testserver/non-api/10/')
    field = self._create_field('non-api-view', 'v2')
    assert (field.to_representation(PKOnlyObject(10)) == 'http://testserver/non-api/10/')
