示例#1
0
 def test_update_managed_repos_for_both(self, fake_update_local_repo_async,
                                        fake_add_known_hosts):
     activate_bundle(['bundle-a'], False)
     activate_bundle(['bundle-b'], False)
     update_managed_repos()
     fake_update_local_repo_async.assert_has_calls(
         [call(ANY, force=False),
          call(ANY, force=False)])
示例#2
0
 def test_update_managed_repos_for_both(self, fake_update_local_repo):
     activate_bundle(['bundle-a'])
     activate_bundle(['bundle-b'])
     update_managed_repos()
     fake_update_local_repo.assert_has_calls([call(), call()])
示例#3
0
 def test_update_managed_repos(self, fake_update_local_repo_async, fake_add_known_hosts):
     activate_bundle(['bundle-a'])
     update_managed_repos()
     fake_update_local_repo_async.assert_has_calls([call(ANY, force=False)])