Esempio n. 1
0
 def run(self, *argv):
     file_reader = FileSystemReader()
     file_reader.list_volumes = lambda: self.volumes
     ListCmd(
         out=self.stdout,
         err=self.stderr,
         environ=self.environ,
         getuid=self.fake_getuid,
         file_reader=file_reader,
         list_volumes=lambda: self.volumes,
     ).run(*argv)
Esempio n. 2
0
 def run(self, *argv):
     file_reader = FileSystemReader()
     file_reader.list_volumes = lambda: self.volumes
     volumes_listing = Mock(spec=VolumesListing)
     volumes_listing.list_volumes.return_value = self.volumes
     ListCmd(
         out=self.stdout,
         err=self.stderr,
         environ=self.environ,
         getuid=self.fake_getuid,
         file_reader=file_reader,
         volumes_listing=volumes_listing,
     ).run(*argv)