def test_delete_buildings_owner(self):
        # arrange: standard case, delete all buildings
        self._set_role_level(ROLE_OWNER)
        self.assertEqual(BuildingSnapshot.objects.filter(
            canonicalbuilding__active=True).count(),
            self.NUMBER_ACTIVE
        )

        # act
        resp = self.client.delete(
            reverse_lazy("seed:delete_buildings"),
            data=json.dumps(
                {
                    'organization_id': self.org.id,
                    'search_payload': {
                        'select_all_checkbox': True
                    }
                }
            ),
            content_type='application/json',
        )

        # assert
        self.assertDictEqual(json.loads(resp.content), {'status': 'success'})
        self.assertEqual(BuildingSnapshot.objects.filter(
            canonicalbuilding__active=True).count(),
            0
        )
Returns
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/tests/test_delete.py/DeleteViewTests.test_delete_buildings_owner--crossover with--dataset/ETHPy150Open muricoca/crab/scikits/crab/models/classes.py/MatrixPreferenceDataModel.preferences_for_item