'``request.build_absolute_uri()`` returns the proper value when
a relative URL ``location`` argument is provided, and ``request.path``
begins with //.'

def test_build_absolute_uri_relative_location(self):

    request = self.factory.get('////absolute-uri')
    self.assertEqual(request.build_absolute_uri(location='/foo/bar/'), 'http://testserver/foo/bar/')
