'Test contrib.formtools.preview form submittal, using a correct
hash'

def test_form_submit_good_hash(self):

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