[svn r37988] adding a bit to the test (but the code is already correct)

--HG--
branch : trunk
This commit is contained in:
hpk 2007-02-06 00:21:33 +01:00
parent a430e2b8f5
commit 7bc4b6a80e
1 changed files with 2 additions and 0 deletions

View File

@ -142,6 +142,7 @@ class TestHostManager(DirSetup):
def test_hostmanager_init_rsync_rsync_roots(self):
dir2 = self.source.ensure("dir1", "dir2", dir=1)
self.source.ensure("dir1", "somefile", dir=1)
dir2.ensure("hello")
self.source.ensure("bogusdir", "file")
self.source.join("conftest.py").write(py.code.Source("""
@ -156,6 +157,7 @@ class TestHostManager(DirSetup):
assert self.dest.join("dir1", "dir2").check()
assert self.dest.join("dir1", "dir2", 'hello').check()
assert not self.dest.join("bogus").check()
assert not self.dest.join("dir1", "somefile").check()
def test_hostmanager_rsync_ignore(self):
dir2 = self.source.ensure("dir1", "dir2", dir=1)