def test_validate_email_already_registered(self, user):
        # enters email that is already registered
        form = RegisterForm(username='unique', email=user.email, password='example', confirm='example', invite_code="bad")
        assert form.validate() is False
        assert form.email.errors in 'Email already registered'
dataset/ETHPy150Open codeforamerica/comport/tests/test_user_forms.py/TestRegisterForm.test_validate_email_already_registered/swapped operands of `in`