Example #1
0
 def test06Fallback(self):
     self.makeDir("g0001", with_pkl=1)
     self.makeDir("g0002")
     gen_dir = Generation.getLatestGenerationName(self.dir)
     self.failUnless(gen_dir == "g0001", "Generation found was not the latest successfull one:  %s" % (gen_dir))
Example #2
0
 def test05Ordering(self):
     self.makeDir("g0001", with_pkl=1)
     self.makeDir("g0002", with_pkl=1)
     gen_dir = Generation.getLatestGenerationName(self.dir)
     self.failUnless(gen_dir == "g0002", "Generation found was not the latest:  %s" % (gen_dir))
Example #3
0
 def test04FailedDir(self):
     self.makeDir("g0001")
     gen_dir = Generation.getLatestGenerationName(self.dir)
     self.failUnlessEqual(gen_dir, None, "Directory with failed Generation did not return None")
Example #4
0
 def test03FalseGenerations(self):
     self.makeFile("galileo")
     gen_dir = Generation.getLatestGenerationName(self.dir)
     self.failUnlessEqual(gen_dir, None, "Directory with false Generation did not return None")
Example #5
0
 def test02NoGenerations(self):
     self.makeFile("foo.txt")
     gen_dir = Generation.getLatestGenerationName(self.dir)
     self.failUnlessEqual(gen_dir, None, "Directory with no Generations did not return None")
Example #6
0
 def test01EmptyDir(self):
     gen_dir = Generation.getLatestGenerationName(self.dir)
     self.failUnlessEqual(gen_dir, None, "Empty directory did not return None")