def test_web_user_with_not_parent_location_access(self):
        self.client.login(username=self.username3, password=self.password3)
        view_url = reverse('input_stock', kwargs={'domain': TEST_DOMAIN, 'site_code': 'tsactive'})
        response = self.client.get(view_url, follow=True)
        self.assertEqual(response.status_code, 403)
User assigned to non-reporting location can send data only for facilities below his location level
dataset/ETHPy150Open dimagi/commcare-hq/custom/ewsghana/tests/test_input_stock_view.py/TestInputStockView.test_web_user_with_not_parent_location_access