The heat.tests.fakes Module

A fake server that “responds” to API methods with pre-canned responses.

All of these responses come from the spec, so if for some reason the spec’s wrong the tests might raise AssertionError. I’ve indicated in comments the places where actual behavior differs from the spec.

class heat.tests.fakes.FakeClient[source]

Bases: object

assert_called(method, url, body=None, pos=-1)[source]

Assert than an API method was just called.

assert_called_anytime(method, url, body=None)[source]

Assert than an API method was called anytime in the test.

authenticate()[source]
clear_callstack()[source]
class heat.tests.fakes.FakeKeystoneClient(username='test_user', user_id='1234', access='4567', secret='8901')[source]
create_stack_user(username, password='')[source]
delete_ec2_keypair(user_id, access)[source]
delete_stack_user(user_id)[source]
get_ec2_keypair(user_id)[source]
heat.tests.fakes.assert_has_keys(dict, required=[], optional=[])[source]

This Page