def test_bad_email(self):
        self.login_chairmen()
        response = self.post_invite({"email": "not a real email",
                                     "default_group_name": DefaultGroups.MEMBER,
                                     "message": "the message"})
        self.assertEqual(response.status_code, 400)
        self.assertEqual(_("Form error. Please supply a valid email."), response.content)