Example #1
0
 def setUp(self):
     FileSystemTestCase.setUp(self)
     self.diskIo = DiskIo()
     self.settings = Settings(self.getWorkingDir())
     self.diskIo.createDirWithParents(self.settings.cachePath)
     self.profileCache = ProfileCache(self.settings, self.diskIo)
     self.testProfile = Profile('test/vimrc')
Example #2
0
 def setUp(self):
     self.profile = Profile('test/vimrc')
     self.settings = Settings(os.path.normpath('/home/foo'))
     self.diskIo = Stubs.DiskIoStub()
     # We use the real ProfileCache (with stubbed dependencies) because
     # ProfileCache.getProfileLocation gets called by ProfileCopier
     self.profileCache = ProfileCache(self.settings, self.diskIo)
     self.profileDataIo = Stubs.ProfileDataIoStub()
     self.profileCopier = ProfileCopier(self.settings, self.profileCache,
                                        self.profileDataIo)