def test_run_playbook(self, mock_open_repo, mock_run_playbook, mock_inventory, mock_vars): """ Run the default playbook """ instance = OpenEdXInstanceFactory() BootedOpenStackServerFactory(instance=instance) mock_open_repo.return_value.__enter__.return_value.working_dir = '/cloned/configuration-repo/path' instance.run_playbook() self.assertIn(call( '/cloned/configuration-repo/path/requirements.txt', mock_inventory, mock_vars, '/cloned/configuration-repo/path/playbooks', 'edx_sandbox.yml', username='******', ), mock_run_playbook.mock_calls)