def test_flatpage_admin_form_edit(self):
        existing = FlatPage.objects.create(
            url="/myflatpage1/", title="Some page", content="The content")
        existing.sites.add(settings.SITE_ID)

        data = dict(url='/myflatpage1/', **self.form_data)

        f = FlatpageForm(data=data, instance=existing)

        self.assertTrue(f.is_valid(), f.errors)

        updated = f.save()

        self.assertEqual(updated.title, "A test page")
Existing flatpages can be edited in the admin form without triggering
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/flatpages/tests/forms.py/FlatpageAdminFormTests.test_flatpage_admin_form_edit