lib.test_objects

This file contains all mock objects used when testing.

Module Contents

class lib.test_objects.MockResponse(status_code, json_data=None)

Mock response used for testing.

json(self)

Get the response json.

Returns

Response json data.

lib.test_objects.raise_(exception)

Raise an exception.

Usefull for testing, since lambda functions can not contain statements.