Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/tests/test.py @ 43:49cc40572f46
test cloning
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 18:59:48 -0700 |
parents | 30fc269a15c8 |
children | 8eb997fd6e79 |
comparison
equal
deleted
inserted
replaced
42:232188e7c04c | 43:49cc40572f46 |
---|---|
25 # Create a new profile: | 25 # Create a new profile: |
26 profiledir = manager.new('testprofile') | 26 profiledir = manager.new('testprofile') |
27 assert profiledir.endswith('.testprofile'), 'profiledir should end with testprofile, instead it is %s' % profiledir | 27 assert profiledir.endswith('.testprofile'), 'profiledir should end with testprofile, instead it is %s' % profiledir |
28 assert manager.list() == ['testprofile'] | 28 assert manager.list() == ['testprofile'] |
29 | 29 |
30 # Clone the profile: | |
31 manager.clone('testprofile', 'cloneprofile') | |
32 assert sorted(manager.list()) == ['cloneprofile', 'testprofile'] | |
33 | |
30 # Cleanup: | 34 # Cleanup: |
31 manager.remove('testprofile') | 35 manager.remove('testprofile') |
32 assert manager.list() == [] | 36 assert manager.list() == [] |