def test_delete_buildings_viewer(self):
        # arrange: standard case, try to delete all buildings, get an error
        self._set_role_level(ROLE_VIEWER)
        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': 'error',
            'message': 'Permission denied'
        })
        # no buildings deleted
        self.assertEqual(BuildingSnapshot.objects.filter(
            canonicalbuilding__active=True).count(),
            self.NUMBER_ACTIVE
        )
Given a (JSON-formatted) log line where the message is a Marathon log line,
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/tests/test_delete.py/DeleteViewTests.test_delete_buildings_viewer--crossover with--dataset/ETHPy150Open Yelp/paasta/paasta_tools/cli/cmds/logs.py/chronos_log_line_passes_filter