def mock_get_activity_streams(streams_file):
    "\n    @TODO: I needed to mock the behavior the `stravalib.client.get_activity_streams`,\n    it isn't the best alternative for mock the request from strava by passing a json file.\n    "
    stream_mock = MockResponse(streams_file).json()
    entities = {}
    for (key, value) in stream_mock.items():
        value['type'] = key
        stream = Stream.deserialize(value)
        entities[stream.type] = stream
    return entities
@TODO: I needed to mock the behavior the `stravalib.client.get_activity_streams`,
it isn't the best alternative for mock the request from strava by passing a json file.
def mock_get_activity_streams(streams_file):
    "\n    @TODO: I needed to mock the behavior the `stravalib.client.get_activity_streams`,\n    it isn't the best alternative for mock the request from strava by passing a json file.\n    "
    stream_mock = MockResponse(streams_file).json()
    entities = {}
    for (key, value) in stream_mock.items():
        value['type'] = key
        stream = Stream.deserialize(value)
        entities[stream.type] = stream
    return entities