def test_get_gitiles_config_corrupted(self): self.mock(storage, 'get_latest_configs_async', mock.Mock()) storage.get_latest_configs_async.return_value = future({ storage.get_self_config_set(): ('rev', 'file://config', 'content_hash', 'garbage'), }) gitiles_import.get_gitiles_config()
def test_get_gitiles_config_corrupted(self): self.mock(storage, 'get_latest_async', mock.Mock()) storage.get_latest_async.return_value = future('garbage') gitiles_import.get_gitiles_config()
def test_get_gitiles_config_corrupted(self): self.mock(storage, 'get_latest', mock.Mock()) storage.get_latest.return_value = 'garbage' gitiles_import.get_gitiles_config()