def test_prepare_cache(self):
     buildoutcache_dir = "{0}/tmp/buildout-cache".format(self.project_dir)
     bin_buildout(
         buildout_file='buildout.cfg',
         buildoutcache_dir=buildoutcache_dir,
         buildout_dir=self.project_dir)
     self.assertRegexpMatches(prepare_cache(buildoutcache_dir),
                              r'collective.recipe.buildoutcache: Removing installed eggs with binary components:')
 def test_bin_buildout(self):
     self.assertFalse(os.path.exists('{0}/tmp/buildout-cache/downloads/dist'.format(self.project_dir)))
     buildoutcache_dir = "{0}/tmp/buildout-cache".format(self.project_dir)
     bin_buildout(
         buildout_file='buildout.cfg',
         buildoutcache_dir=buildoutcache_dir,
         buildout_dir=self.project_dir)
     self.assertTrue(os.path.exists('{0}/tmp/buildout-cache/downloads/dist'.format(self.project_dir)))
Пример #3
0
 def test_prepare_cache(self):
     buildoutcache_dir = "{0}/tmp/buildout-cache".format(self.project_dir)
     bin_buildout(buildout_file='buildout.cfg',
                  buildoutcache_dir=buildoutcache_dir,
                  buildout_dir=self.project_dir)
     self.assertRegexpMatches(
         prepare_cache(buildoutcache_dir),
         r'collective.recipe.buildoutcache: Removing installed eggs with binary components:'
     )
Пример #4
0
 def test_bin_buildout(self):
     self.assertFalse(
         os.path.exists('{0}/tmp/buildout-cache/downloads/dist'.format(
             self.project_dir)))
     buildoutcache_dir = "{0}/tmp/buildout-cache".format(self.project_dir)
     bin_buildout(buildout_file='buildout.cfg',
                  buildoutcache_dir=buildoutcache_dir,
                  buildout_dir=self.project_dir)
     self.assertTrue(
         os.path.exists('{0}/tmp/buildout-cache/downloads/dist'.format(
             self.project_dir)))