Beispiel #1
0
 def BuildAutotestTarballs(self, *args, **kwargs):
     with patches(
             patch(commands, 'BuildTarball'),
             patch(commands,
                   'FindFilesWithPattern',
                   return_value=['foo.txt'])):
         self.backup['BuildAutotestTarballs'](*args, **kwargs)
 def _BuildImages(self, *args, **kwargs):
   with patches(
       patch(os, 'symlink'),
       patch(os, 'readlink', return_value='foo.txt')):
     self.backup['_BuildImages'](*args, **kwargs)
 def BuildAutotestTarballs(self, *args, **kwargs):
   with patches(
       patch(commands, 'BuildTarball'),
       patch(commands, 'FindFilesWithPattern', return_value=['foo.txt'])):
     self.backup['BuildAutotestTarballs'](*args, **kwargs)
Beispiel #4
0
 def _BuildImages(self, *args, **kwargs):
     with patches(patch(os, 'symlink'),
                  patch(os, 'readlink', return_value='foo.txt')):
         self.backup['_BuildImages'](*args, **kwargs)