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")))
 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")))
 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()