コード例 #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))