def test_init(self):
        class F(Form):
            fields=[
                Field('first', permissions='rw'),
                Field('second'),
            ]
        env = AppEnvironment.create()
        form = F(env, permissions='rwx')
        self.assertEqual(form.permissions, set('rwx'))
        self.assertEqual(form.get_field('second').permissions, set('rwx'))
        self.assertEqual(form.get_field('first').permissions, set('rw'))

        form = F(env, permissions='r')
        self.assertEqual(form.permissions, set('r'))
        self.assertEqual(form.get_field('second').permissions, set('r'))
        self.assertEqual(form.get_field('first').permissions, set('r'))
Tests that we should require a class, not the object on the class.
dataset/ETHPy150Open SmartTeleMax/iktomi/tests/forms/perms.py/PermissionsTests.test_init--crossover with--dataset/ETHPy150Open google/closure-linter/closure_linter/closurizednamespacesinfo_test.py/ClosurizedNamespacesInfoTest.testGetMissingRequires_objectOnClass