'The `next` key needs to handle already having a query string (#10585)'

def testCommentNextWithQueryString(self):

    a = Article.objects.get(pk=1)
    data = self.getValidData(a)
    data[u'next'] = u'/somewhere/else/?foo=bar'
    data[u'comment'] = u'This    is    another    comment'
    response = self.client.post(u'/post/', data)
    location = response[u'Location']
    match = re.search(u'^http://testserver/somewhere/else/\\?foo=bar&c=\\d+$', location)
    self.assertTrue((match != None), (u'Unexpected    redirect    location:    %s' % location))
