

def assert_post_or_put(self, url, headers, data, put=False):
    self.set_url_with_querystring_params(url)
    if (not put):
        r = self.app.post(self.url, headers=headers, data=data)
    else:
        r = self.app.put(data.url, headers=headers, data=data)
    self.assertEqual(r.status_code, 200)
    self.assertEqual(r.mimetype, 'application/json')
    return r

dataset/ETHPy150Open BuongiornoMIP/Reding/reding/tests/utils.py RedingTestCase.assert_post_or_put/VarMisuse@69/80 `self`->`data`