

def test_public_omaha_update(self):
    url = ('%s%s' % (resp.live_server_url, reverse('update')))
    body = '<?xml version="1.0" encoding="UTF-8"?> <request installsource="scheduler" ismachine="0" protocol="3.0" requestid="{F77BCC0B-BB7C-4396-8071-01063EB72E4F}" sessionid="{81586D86-30A4-44CA-B396-0D8AC0113836}" testsource="auto" version="1.3.25.0"> <os arch="x64" platform="win" sp="Service Pack 1" version="6.1"/> <app appid="{8A76FC95-0086-4BCE-9517-DC09DDB5652F}" brand="GGLS" client="" installage="4" lang="en" nextversion="" version="36.0.2060.0"> <updatecheck/> </app> <app appid="{F07B3878-CD6F-4B96-B52F-95C4D23077E0}" brand="" client="" installage="6" lang="en" nextversion="13.0.782.112" version=""> <event errorcode="0" eventresult="1" eventtype="9" extracode1="0"/> <event errorcode="0" eventresult="1" eventtype="5" extracode1="0"/> <event errorcode="-2147219440" eventresult="4" eventtype="2" extracode1="268435463"/> </app> </request>'
    headers = {
        'Content-Type': 'application/xml',
    }
    resp = requests.post(url, data=body, headers=headers)
    self.assertEqual(resp.status_code, 200)
    self.assertEqual(Request.objects.count(), 1)
    self.assertEqual(AppRequest.objects.count(), 1)

dataset/ETHPy150Open Crystalnix/omaha-server/omaha_server/omaha/tests/test_public.py PublicTests.test_public_omaha_update/VarMisuse@16/25 `self`->`resp`