示例#1
0
 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
 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))