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

def test_build_absolute_uri_schema_relative_location(self):

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