Mercurial > mozilla > hg > ProfileManager
changeset 43:49cc40572f46
test cloning
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 18:59:48 -0700 |
parents | 232188e7c04c |
children | 8eb997fd6e79 |
files | profilemanager/manager.py profilemanager/tests/test.py |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/profilemanager/manager.py Thu May 06 18:56:34 2010 -0700 +++ b/profilemanager/manager.py Thu May 06 18:59:48 2010 -0700 @@ -113,7 +113,8 @@ # copy the files shutil.copytree(source_path, dest, symlinks=False) - + + return dest def backup(self, profile, dest=None): """
--- a/profilemanager/tests/test.py Thu May 06 18:56:34 2010 -0700 +++ b/profilemanager/tests/test.py Thu May 06 18:59:48 2010 -0700 @@ -27,6 +27,10 @@ assert profiledir.endswith('.testprofile'), 'profiledir should end with testprofile, instead it is %s' % profiledir assert manager.list() == ['testprofile'] +# Clone the profile: +manager.clone('testprofile', 'cloneprofile') +assert sorted(manager.list()) == ['cloneprofile', 'testprofile'] + # Cleanup: manager.remove('testprofile') assert manager.list() == []