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

@ -12,10 +12,6 @@ class SNSResponse(BaseResponse):
def backend(self):
return sns_backends[self.region]
@property
def request_json(self):
return 'JSON' in self.querystring.get('ContentType', [])
def _get_attributes(self):
attributes = self._get_list_prefix('Attributes.entry')
return dict(