'Ensure http response from a popup is properly escaped.'

def testPopupAddPost(self):

    post_data = {'_popup': u'1', 'title': u'title    with    a    new\nline', 'content': u'some    content', 'date_0': u'2010-09-10', 'date_1': u'14:55:39'}
    response = self.client.post(('/test_admin/%s/admin_views/article/add/' % self.urlbit), post_data)
    self.failUnlessEqual(response.status_code, 200)
    self.assertContains(response, 'dismissAddAnotherPopup')
    self.assertContains(response, 'title    with    a    new\\u000Aline')
