apps.core.models.groupinvite: Use assertRaisesRegexp for the tests.