Add XML support for cloudformation commands that lacked it

This lets boto3's cloudformation API work with moto.

fixes #444

Signed-off-by: Scott Greene <scott.greene@getbraintree.com>
This commit is contained in:
Andrew Garrett 2016-02-29 19:50:23 +00:00 committed by Scott Greene
commit ec10699c38
5 changed files with 363 additions and 91 deletions

View file

@ -254,6 +254,10 @@ class BaseResponse(_TemplateEnvironmentMixin):
param_index += 1
return results
@property
def request_json(self):
return 'JSON' in self.querystring.get('ContentType', [])
def metadata_response(request, full_url, headers):
"""