def test_allowed_file_paths_unavailable_source(self):
        request = MockSuite().mock_request()
        query = MockSuite().mock_sql_queries(request=request, n=1)[0]
        file_path = '/tmp/blah'
        with open(file_path, 'w') as f:
            f.write('test')
        response = self.client.get(silky_reverse('request_sql_detail',
                                           kwargs={'sql_id': query.id, 'request_id': request.id}),
                                   data={
                                       'line_num': 0,
                                       'file_path': file_path
                                   })
        self.assertTrue(response.status_code == 403)
if we request to view source that is not in the tracebackk we should get a 403
dataset/ETHPy150Open django-silk/silk/project/tests/test_view_sql_detail.py/TestViewSQLDetail.test_allowed_file_paths_unavailable_source