예제 #1
0
파일: wc.py 프로젝트: Distrotech/subversion
 def test_get_pristine_copy_path(self):
     path_to_file = '%s/trunk/README.txt' % self.path
     path_to_text_base = wc.get_pristine_copy_path(path_to_file)
     text_base = open(path_to_text_base).read()
     # TODO: This test should modify the working file first, to ensure the
     # path isn't just the path to the working file.
     self.assertEqual(text_base, 'A test.\n')
예제 #2
0
파일: wc.py 프로젝트: svn2github/subversion
 def test_get_pristine_copy_path(self):
     path_to_file = '%s/trunk/README.txt' % self.path
     path_to_text_base = wc.get_pristine_copy_path(path_to_file)
     text_base = open(path_to_text_base).read()
     # TODO: This test should modify the working file first, to ensure the
     # path isn't just the path to the working file.
     self.assertEqual(text_base, 'A test.\n')
예제 #3
0
파일: wc.py 프로젝트: yinjinzhong/mycode
 def test_get_pristine_copy_path(self):
     path_to_file = '%s/%s' % (self.path, 'foo')
     path_to_text_base = '%s/%s/text-base/foo.svn-base' % (self.path,
                                                           wc.get_adm_dir())
     self.assertEqual(path_to_text_base,
                      wc.get_pristine_copy_path(path_to_file))
예제 #4
0
파일: wc.py 프로젝트: vocho/openqnx
 def test_get_pristine_copy_path(self):
     path_to_file = "%s/%s" % (self.path, "foo")
     path_to_text_base = "%s/%s/text-base/foo.svn-base" % (self.path, wc.get_adm_dir())
     self.assertEqual(path_to_text_base, wc.get_pristine_copy_path(path_to_file))