def test_admin_validation(self):
        #FIXME: Write a test.
        self.login_and_load()
        test_section = TestSection.objects.get(slug="2")
        admin_urls = self.get_admin_urls(test_section)
        response = self.client.post(admin_urls['create'], {
            'slug': '22',
            'title': 'Invalid!',
        })
        err = response.context['adminform'].form.errors['slug'][0]
        self.assertEqual(
            u"Test section with this Slug already exists.",
            err
        )
Make sure we can't create two sections with the same slug under one
dataset/ETHPy150Open mazelife/django-scaffold/scaffold/tests.py/SectionTest.test_admin_validation