moto/tests/test_events
cpitchford e85106c708
describe_event_bus returns json, not dict
Correct the assumption that describe_event_bus()['Policy'] is a dict
As per
http://boto3.readthedocs.io/en/latest/reference/services/events.html#CloudWatchEvents.Client.describe_event_bus
It should be a JSON encoded string

Here we decode the JSON before we look inside the policy
2018-05-15 17:04:59 +01:00
..
test_events.py describe_event_bus returns json, not dict 2018-05-15 17:04:59 +01:00