Esempio n. 1
0
 def testSimpleDirectoryWithoutRoot(self):
     fixRootFile(self.dir2, ":kserver:", ":ext:")
     self.assertTrue(os.path.exists(os.path.join(self.dir2, "CVS")))
     self.assertFalse(os.path.exists(os.path.join(self.dir2, "CVS",
                                                  "Root")))
     self.assertFalse(
         os.path.exists(os.path.join(self.dir2, "CVS", "Root.new")))
     self.assertFalse(
         os.path.exists(os.path.join(self.dir2, "CVS", "Root.bak")))
Esempio n. 2
0
 def testSimpleEmptyDirectory(self):
     fixRootFile(self.dir1, ":kserver:", ":ext:")
     self.assertFalse(os.path.exists(os.path.join(self.dir1, "CVS")))
     self.assertFalse(os.path.exists(os.path.join(self.dir1, "CVS",
                                                  "Root")))
     self.assertFalse(
         os.path.exists(os.path.join(self.dir1, "CVS", "Root.new")))
     self.assert_(
         not os.path.exists(os.path.join(self.dir1, "CVS", "Root.bak")))
Esempio n. 3
0
 def testSimpleDirectoryWithWrongRoot(self):
     fixRootFile(self.dir4, ":kserver:", ":ext:")
     self.assertTrue(os.path.exists(os.path.join(self.dir4, "CVS")))
     self.assertTrue(os.path.exists(os.path.join(self.dir4, "CVS", "Root")))
     self.assertFalse(
         os.path.exists(os.path.join(self.dir4, "CVS", "Root.new")))
     self.assertFalse(
         os.path.exists(os.path.join(self.dir4, "CVS", "Root.bak")))
     f = open(os.path.join(self.dir4, "CVS", "Root"), "r")
     self.assertTrue(f.read() == ":ext:something")
     f.close()