Guest User

Untitled

a guest
Feb 3rd, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. def test_get_context_data_find_stack_has_more(self, mock_nova_api,
  2. mock_heat_api):
  3.  
  4. foo_mock_instance = mock.Mock(id='foo_instance_id')
  5. foo_mock_instance.configure_mock(name='foo-instance-name')
  6. mock_nova_api.server_list.side_effect = [
  7. ([foo_mock_instance], False)
  8. ]
  9. mock_heat_api.stacks_list.side_effect = [
  10. (
  11. [mock.Mock(id='bar_stack_id', stack_name='bar_stack_name')],
  12. True, False
  13. ),
  14. (
  15. [mock.Mock(id='foo_stack_id', stack_name='foo_stack_name')],
  16. False, False
  17. )
  18. ]
Advertisement
Add Comment
Please, Sign In to add comment