def test_redirect_if_opted_in(self, *classes):
        self.make_participant('alice')
        for platform in self.platforms:
            account = self.make_elsewhere(platform.name, 1, 'alice')
            account.opt_in('alice')

            response = self.client.GxT('/on/%s/alice/public.json' % platform.name)

            assert response.code == 302
dataset/ETHPy150Open gratipay/gratipay.com/tests/py/test_elsewhere_public_json.py/Tests.test_redirect_if_opted_in/original