def test_form_submit_good_hash(self):
        # Pass strings for form submittal and add stage variable to
        # show we previously saw first stage of the form.
        self.test_data.update({'stage':2})
        response = self.client.post('/preview/', self.test_data)
        self.assertNotEqual(response.content, success_string)
        hash = utils.form_hmac(TestForm(self.test_data))
        self.test_data.update({'hash': hash})
        response = self.client.post('/preview/', self.test_data)
        self.assertEqual(response.content, success_string)
Create and update a network.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/formtools/tests/__init__.py/PreviewTests.test_form_submit_good_hash--crossover with--dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/neutron/network.py/NeutronNetworks.create_and_update_networks