

def test_web_user_with_wrong_location_access(self):
    '\n            User assigned to reporting location can send data only for this particular facility.\n        '
    self.client.login(username=view_url.username4, password=self.password4)
    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)

dataset/ETHPy150Open dimagi/commcare-hq/custom/ewsghana/tests/test_input_stock_view.py TestInputStockView.test_web_user_with_wrong_location_access/VarMisuse@20/58 `self`->`view_url`