@attr(user='group')
    def test_1_GET_groups_id_memberships_admin(self):

        group_id = self.testdata['group']['xid']
        admin_id = self.testdata['admin']['xid']

        typepad.client.batch_request()
        group = typepad.Group.get_by_url_id(group_id)
        admins = group.memberships.filter(admin=True)
        everyone = group.memberships.filter()
        typepad.client.complete_batch()

        self.assertValidGroup(group)
        for rel in admins:
            self.assertValidRelationship(rel)
        for rel in everyone:
            self.assertValidRelationship(rel)

        # yes, we have one or more admins!
        self.assert_(len(admins) > 0, 'admin membership should be non-zero')
        self.assert_(admin_id in [a.target.url_id for a in admins],
            'configured admin should exist in admin memberships')

        self.assertNotEqual(admins.total_results, everyone.total_results,
            'Filtered member list size should be less than unfiltered list: %d != %d' %
            ( admins.total_results, everyone.total_results ))
Test GET with no redirect
dataset/ETHPy150Open typepad/python-typepad-api/tests/test_typepad.py/TestGroup.test_1_GET_groups_id_memberships_admin--crossover with--dataset/ETHPy150Open rcbops/glance-buildpackage/glance/tests/functional/test_client_redirects.py/TestClientRedirects.test_get_without_redirect