Exemple #1
0
 def test_get_buildout_ver(self):
     for path in [os.path.join(self.tdir, 'var/ver/1/dumppicked'),
                  os.path.join(self.tdir, 'var/ver/1/bootstrap'),
                  os.path.join(self.tdir, 'var/ver/1/versions')]:
         self.assertEqual(1,
                          buildout._get_buildout_ver(path),
                          "1 for {0}".format(path))
     for path in [os.path.join(self.tdir, '/non/existing'),
                  os.path.join(self.tdir, 'var/ver/2/versions'),
                  os.path.join(self.tdir, 'var/ver/2/bootstrap'),
                  os.path.join(self.tdir, 'var/ver/2/default')]:
         self.assertEqual(2,
                          buildout._get_buildout_ver(path),
                          "2 for {0}".format(path))
Exemple #2
0
 def test_get_buildout_ver(self):
     for path in [os.path.join(self.tdir, 'var/ver/1/dumppicked'),
                  os.path.join(self.tdir, 'var/ver/1/bootstrap'),
                  os.path.join(self.tdir, 'var/ver/1/versions')]:
         self.assertEqual(1,
                          buildout._get_buildout_ver(path),
                          "1 for {0}".format(path))
     for path in [os.path.join(self.tdir, '/non/existing'),
                  os.path.join(self.tdir, 'var/ver/2/versions'),
                  os.path.join(self.tdir, 'var/ver/2/bootstrap'),
                  os.path.join(self.tdir, 'var/ver/2/default')]:
         self.assertEqual(2,
                          buildout._get_buildout_ver(path),
                          "2 for {0}".format(path))
 def test_get_buildout_ver(self):
     for path in [
             os.path.join(self.tdir, "var/ver/1/dumppicked"),
             os.path.join(self.tdir, "var/ver/1/bootstrap"),
             os.path.join(self.tdir, "var/ver/1/versions"),
     ]:
         self.assertEqual(1, buildout._get_buildout_ver(path),
                          "1 for {}".format(path))
     for path in [
             os.path.join(self.tdir, "/non/existing"),
             os.path.join(self.tdir, "var/ver/2/versions"),
             os.path.join(self.tdir, "var/ver/2/bootstrap"),
             os.path.join(self.tdir, "var/ver/2/default"),
     ]:
         self.assertEqual(2, buildout._get_buildout_ver(path),
                          "2 for {}".format(path))