'Test contrib.formtools.preview form submittal when form contains:
BooleanField(required=False)
Ticket: #6209 - When an unchecked BooleanField is previewed, the preview
form\'s hash would be computed with no value for ``bool1``. However, when
the preview form is rendered, the unchecked hidden BooleanField would be
rendered with the string value \'False\'. So when the preview form is
resubmitted, the hash would be computed with the value \'False\' for
``bool1``. We need to make sure the hashes are the same in both cases.'

def test_bool_submit(self):

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