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

def test_build_absolute_uri_no_location(self):

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