'Test that inline file uploads correctly display prior data (#10002).'

def test_inline_file_upload_edit_validation_error_post(self):

    post_data = {u'name': u'Test    Gallery', u'pictures-TOTAL_FORMS': u'2', u'pictures-INITIAL_FORMS': u'1', u'pictures-MAX_NUM_FORMS': u'0', u'pictures-0-id': six.text_type(self.picture.id), u'pictures-0-gallery': six.text_type(self.gallery.id), u'pictures-0-name': u'Test    Picture', u'pictures-0-image': u'', u'pictures-1-id': u'', u'pictures-1-gallery': str(self.gallery.id), u'pictures-1-name': u'Test    Picture    2', u'pictures-1-image': u''}
    response = self.client.post((u'/test_admin/%s/admin_views/gallery/%d/' % (self.urlbit, self.gallery.id)), post_data)
    self.assertTrue((response._container[0].find(u'Currently:') > (-1)))
