def test_required_set_correctly(self):
        "Test required set correctly for basic form."
        for field_name, field in self.form.fields.items():
            if field_name in DetailedTalk.required_fields:
                self.assertTrue(
                    field.required,
                    field_name % "%s should be required"
                )
            else:
                self.assertEquals(
                    field.required,
                    False,
                    "%s should not be required" % field_name
                )
dataset/ETHPy150Open peterbe/django-mongokit/django_mongokit/tests.py/BasicDocumentFormTest.test_required_set_correctly/swapped operands of `%`