'Tests that attempting to retrieve the location specified in the
post redirect, after adding some invalid data to the expected
querystring it ends with, doesn\'t cause a server error.'

def testCommentPostRedirectWithInvalidIntegerPK(self):

    a = Article.objects.get(pk=1)
    data = self.getValidData(a)
    data[u'comment'] = u'This    is    another    comment'
    response = self.client.post(u'/post/', data)
    location = response[u'Location']
    broken_location = (location + u'\ufffd')
    response = self.client.get(broken_location)
    self.assertEqual(response.status_code, 200)
