def METHOD_NAME(self):
    with self.assertRaises(ValidationError) as cm:
        _validate_complete_username('user@domain2.commcarehq.org', 'domain')
    self.assertEqual(cm.exception.message,
                     "The username email domain '@domain2.commcarehq.org' should be '@domain.commcarehq.org'.")