def test_organize_by_users(self):
        data = {'project_1': self.project.pk, 'organize_by': 'user'}
        response = self._get(data=data)
        self.assertEqual(response.status_code, 200)
        form, report, organize_by, worked, assigned = self._unpack(response)
        self.assertEqual(len(form.errors), 0)
        self.assertEqual(organize_by, 'user')
        self.assertEqual(float(worked), 8.0)
        self.assertEqual(float(assigned), 8.0)
        self.assertEqual(len(report), 1 + 3)  # Include header row
        self._check_row(report[1], ['User 1', 0.0, 4.0])
        self._check_row(report[2], ['User 2', 4.0, 4.0])
        self._check_row(report[3], ['User 3', 4.0, 0.0])
Extract file from compressed .sd file
dataset/ETHPy150Open caktus/django-timepiece/timepiece/reports/tests/test_productivity.py/TestProductivityReport.test_organize_by_users--crossover with--dataset/ETHPy150Open Esri/ops-server-config/SupportFiles/GetSDFiles.py/extractFromSDFile