'Test contrib.formtools.preview form preview rendering.
Use the client library to POST to the form to see if a preview
is returned.  If we do get a form back check that the hidden
value is correctly managing the state of the form.'

def test_form_preview(self):

    self.test_data.update({u'stage': 1, u'date1': datetime.date(2006, 10, 25)})
    response = self.client.post(u'/preview/', self.test_data)
    stage = (self.input % 2)
    self.assertContains(response, stage, 1)
