'Test contrib.formtools.preview form submittal does not proceed
if the hash is incorrect.'

def test_form_submit_bad_hash(self):

    self.test_data.update({u'stage': 2})
    response = self.client.post(u'/preview/', self.test_data)
    self.assertEqual(response.status_code, 200)
    self.assertNotEqual(response.content, success_string_encoded)
    hash = (utils.form_hmac(TestForm(self.test_data)) + u'bad')
    self.test_data.update({u'hash': hash})
    response = self.client.post(u'/previewpreview/', self.test_data)
    self.assertNotEqual(response.content, success_string_encoded)
