

def test_public_feedback(self):
    with open(PB_FILE, 'rb') as f:
        body = f.read()
    self.assertEqual(Feedback.objects.all().count(), 0)
    response = body.client.post(reverse('feedback'), data=body, content_type='application/x-protobuf', REMOTE_ADDR='8.8.8.8')
    self.assertEqual(response.status_code, 200)
    self.assertEqual(Feedback.objects.all().count(), 1)

dataset/ETHPy150Open Crystalnix/omaha-server/omaha_server/omaha/tests/test_public.py PublicTests.test_public_feedback/VarMisuse@52/62 `self`->`body`