def test_export(self):
        member_one = self.create_user()
        member_two = self.create_user()
        owner = self.create_superuser(
            first_name='Group', last_name='Reporter Exporter')

        group = self.create_group(created_by=owner, featured=True)
        group.owners.add(owner)

        member_one.add_to_group(group.pk)
        member_two.add_to_group(group.pk)

        self.create_thread(sender=member_one, group=group)

        response = self.client.get(
            '{path}?export&search_name={group_name}'.format(
                path=reverse('groups_report'), group_name=group.group.name))
        self.assertEqual(
            response['Content-Disposition'],
            'attachment; filename=groups.csv'
        )
        self.assertEqual(
            response['Content-Type'],
            'text/csv'
        )

        # We can use python's CSV parsing functionality by creating a CSV file
        # object and passing it to DictReader.
        reader = csv.DictReader(io.StringIO(unicode(response.content)))

        # We can get the first row in the CSV (which should just be our group)
        # by using python's next() functionality.
        report = next(reader)

        self.assertEqual(report['Admins'], '1')
        self.assertEqual(report['Category'], 'Default')
        self.assertEqual(report['Created By'], 'Group R.')
        self.assertEqual(report['Featured'], 'True')
        self.assertEqual(report['Member list published'], 'True')
        self.assertEqual(report['Members'], '2')
        self.assertEqual(report['Messages'], '1')
        self.assertEqual(report['Name'], group.group.name)
        self.assertEqual(report['Posters'], '1')
        self.assertEqual(report['Private'], 'False')
        self.assertEqual(report['Threads'], '1')
Change application full name.
dataset/ETHPy150Open ofa/connect/open_connect/reporting/tests/test_views.py/GroupReportListViewTest.test_export--crossover with--dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/murano/utils.py/MuranoPackageManager._change_app_fullname