'A test to ensure that POST on edit_view handles non-ascii characters.'

def testUnicodeEdit(self):

    post_data = {u'name': u'Test    l\xe6rdommer', u'chapter_set-TOTAL_FORMS': u'6', u'chapter_set-INITIAL_FORMS': u'3', u'chapter_set-MAX_NUM_FORMS': u'0', u'chapter_set-0-id': u'1', u'chapter_set-0-title': u'Norske    bostaver    \xe6\xf8\xe5    skaper    problemer', u'chapter_set-0-content': u'&lt;p&gt;Sv\xe6rt    frustrerende    med    UnicodeDecodeError&lt;/p&gt;', u'chapter_set-1-id': u'2', u'chapter_set-1-title': u'Kj\xe6rlighet.', u'chapter_set-1-content': u'&lt;p&gt;La    kj\xe6rligheten    til    de    lidende    seire.&lt;/p&gt;', u'chapter_set-2-id': u'3', u'chapter_set-2-title': u'Need    a    title.', u'chapter_set-2-content': u'&lt;p&gt;Newest    content&lt;/p&gt;', u'chapter_set-3-id': u'', u'chapter_set-3-title': u'', u'chapter_set-3-content': u'', u'chapter_set-4-id': u'', u'chapter_set-4-title': u'', u'chapter_set-4-content': u'', u'chapter_set-5-id': u'', u'chapter_set-5-title': u'', u'chapter_set-5-content': u''}
    response = self.client.post(u'/test_admin/admin/admin_views/book/1/', post_data)
    self.assertEqual(response.status_code, 302)
