'Test contrib.formtools.preview form submittal, using the hash function
used in Django 1.2'

def test_form_submit_django12_hash(self):

    self.test_data.update({'stage': 2})
    response = self.client.post('/test1/', self.test_data)
    self.assertNotEqual(response.content, success_string)
    hash = utils.security_hash(None, TestForm(self.test_data))
    self.test_data.update({'hash': hash})
    response = self.client.post('/test1/', self.test_data)
    self.assertEqual(response.content, success_string)
