ArchiverTestCase, test_symlink_extract

This commit is contained in:
Marian Beermann 2016-03-18 02:58:29 +01:00
parent d4225f7dda
commit 037d54e442

View file

@ -353,6 +353,14 @@ class ArchiverTestCase(ArchiverTestCaseBase):
# the interesting parts of info_output2 and info_output should be same
self.assert_equal(filter(info_output), filter(info_output2))
def test_symlink_extract(self):
self.create_test_files()
self.cmd('init', self.repository_location)
self.cmd('create', self.repository_location + '::test', 'input')
with changedir('output'):
self.cmd('extract', self.repository_location + '::test')
assert os.readlink('input/link1') == 'somewhere'
def test_atime(self):
self.create_test_files()
atime, mtime = 123456780, 234567890