Пример #1
0
 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()
Пример #2
0
 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()
Пример #3
0
 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()
Пример #4
0
 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()
Пример #5
0
 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()