def test_invitation_signup_attrs(self):
        f = InvitationSignupForm()
        fields = set(f.fields.keys())

        self.assertFalse('username' in fields)
        self.assertTrue('code' in fields)
        self.assertTrue('email' in fields)
        self.assertTrue('password1' in fields)
        self.assertFalse(fields in 'password2')
dataset/ETHPy150Open idlesign/django-sitegate/sitegate/tests.py/ModernSignupFormsTest.test_invitation_signup_attrs/swapped operands of `in`