Mercurial > python-hglib
view tests/test-manifest.py @ 66:358fd5c84270
add a setup.py
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Tue, 23 Aug 2011 21:57:40 +0300 |
parents | a7d98dc798c5 |
children | e89dd99638ce |
line wrap: on
line source
import common, hglib, os, stat class test_manifest(common.basetest): def test_basic(self): self.append('a', 'a') self.append('b', 'b') os.chmod('b', os.stat('b')[0] | stat.S_IEXEC) os.symlink('b', 'c') self.client.commit('first', addremove=True) self.assertEquals(list(self.client.manifest(all=True)), ['a', 'b', 'c']) manifest = \ [('047b75c6d7a3ef6a2243bd0e99f94f6ea6683597', '644', False, False, 'a'), ('62452855512f5b81522aa3895892760bb8da9f3f', '755', True, False, 'b'), ('62452855512f5b81522aa3895892760bb8da9f3f', '644', False, True, 'c')] self.assertEquals(list(self.client.manifest()), manifest)