def setup(self): repository = mock.Mock() repository.root_dir = 'root-dir' self.manager = PackageManagerBase(repository)