def test_groups_form_contains_groups_member_of(self):
        request_factory = RequestFactory()
        request = request_factory.get('/')

        user = mommy.make(USER_MODEL)
        request.user = user

        view = views.GroupMessageCreateView()
        view.request = request
        view.object = None
        form = view.get_form(GroupMessageForm)

        user.add_to_group(self.group1.pk)
        self.assertIn(self.group1, user.messagable_groups)
        self.assertIn(str(self.group1), form.as_p())
        self.assertNotIn(str(self.group2), form.as_p())

        user.add_to_group(self.group2.pk)
        self.assertIn(self.group2, user.messagable_groups)
        self.assertIn(str(self.group1), form.as_p())
        self.assertIn(str(self.group2), form.as_p())

        user.remove_from_group(self.group1)
        self.assertNotIn(self.group1, user.messagable_groups)
        self.assertNotIn(str(self.group1), form.as_p())
Return the alternative for the user, as previously set with
dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_views.py/GroupMessageCreateViewTest.test_groups_form_contains_groups_member_of--crossover with--dataset/ETHPy150Open dcrosta/dabble/dabble/__init__.py/ResultStorage.get_alternative