Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_get_context_data_find_stack_has_more(self, mock_nova_api,
- mock_heat_api):
- foo_mock_instance = mock.Mock(id='foo_instance_id')
- foo_mock_instance.configure_mock(name='foo-instance-name')
- mock_nova_api.server_list.side_effect = [
- ([foo_mock_instance], False)
- ]
- mock_heat_api.stacks_list.side_effect = [
- (
- [mock.Mock(id='bar_stack_id', stack_name='bar_stack_name')],
- True, False
- ),
- (
- [mock.Mock(id='foo_stack_id', stack_name='foo_stack_name')],
- False, False
- )
- ]
Advertisement
Add Comment
Please, Sign In to add comment