Ejemplo n.º 1
0
 def test_missingUserSitePackages(self):
     """
     L{BranchManager.getPaths} should return an iterable which does not
     have as an element the user-specific site-packages directory, if
     that directory does not exist.
     """
     home = self.mktemp()
     self.changeEnvironment('HOME', home)
     b = BranchManager()
     self.assertNotIn(self._perUserSitePackages(home), list(b.getPaths()))
Ejemplo n.º 2
0
 def test_missingUserSitePackages(self):
     """
     L{BranchManager.getPaths} should return an iterable which does not
     have as an element the user-specific site-packages directory, if
     that directory does not exist.
     """
     home = self.mktemp()
     self.changeEnvironment('HOME', home)
     b = BranchManager()
     self.assertNotIn(self._perUserSitePackages(home), list(b.getPaths()))
Ejemplo n.º 3
0
 def test_userSitePackages(self):
     """
     L{BranchManager.getPaths} should return an iterable which has as an
     element the user-specific site-packages directory, if that directory
     exists.
     """
     home = self.mktemp()
     sitePackages = self._perUserSitePackages(home)
     os.makedirs(sitePackages)
     self.changeEnvironment('HOME', home)
     b = BranchManager()
     self.assertIn(sitePackages, list(b.getPaths()))
Ejemplo n.º 4
0
 def test_userSitePackages(self):
     """
     L{BranchManager.getPaths} should return an iterable which has as an
     element the user-specific site-packages directory, if that directory
     exists.
     """
     home = self.mktemp()
     sitePackages = self._perUserSitePackages(home)
     os.makedirs(sitePackages)
     self.changeEnvironment('HOME', home)
     b = BranchManager()
     self.assertIn(sitePackages, list(b.getPaths()))