def action_data(self, action_name, **kwargs):
        opts = {"Action": action_name}
        opts.update(kwargs)
        res = self.get("/?{0}".format(urlencode(opts)),
                headers={"Host": "{0}.us-east-1.amazonaws.com".format(self.application.service)})
        return res.data.decode("utf-8")
Method calls resource with action_name and returns data of response.
dataset/ETHPy150Open spulec/moto/moto/server.py/AWSTestHelper.action_data