Again, I don't think we need to test all of this here. For the sake of readability, this could just be:
res_id = loads(rv.data)['res_id']
without any other asserts.