Пример #1
0
 def test_download_cookbooks_returns_list_of_files(self):
     self.client.get_cookbook.side_effect = [1, 2]
     files = download_cookbooks(self.client, self.cookbooks)
     self.assertEqual([1,2], files)
Пример #2
0
 def test_download_cookbooks_retrives_cookbook_versions_from_client(self):
     download_cookbooks(self.client, self.cookbooks)
     self.client.get_cookbook.assert_has_calls([call('foo', '1.0'),
                                                call('bar', '2.1')],
                                               any_order=True)