def setUpTestData(cls):
        cls.url = reverse('search-list')
        Feature.objects.create(name='archival descriptions', enabled=True)
        cls.user = User.objects.create()
        permission = Permission.objects.get(codename='search')
        cls.user.user_permissions.add(permission)

        org_group_type = GroupType.objects.create(codename='organization')

        cls.group1 = Group.objects.create(name='group1', group_type=org_group_type)
        cls.group1.add_member(cls.user.essauth_member)

        cls.group2 = Group.objects.create(name='group2', group_type=org_group_type)
        cls.group2.add_member(cls.user.essauth_member)

        cls.component_type = TagVersionType.objects.create(name='component', archive_type=False)
        cls.archive_type = TagVersionType.objects.create(name='archive', archive_type=True)