Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/tests/test.py @ 39:30fc269a15c8
* add additional tests
* remove unused hash argument from ProfileManager.clone
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 18:08:08 -0700 |
parents | b9d7f5f61e23 |
children | 49cc40572f46 |
comparison
equal
deleted
inserted
replaced
38:81500171fda8 | 39:30fc269a15c8 |
---|---|
23 assert file(profiles).read().strip() == '[General]', 'profiles.ini isnt nearly empty' | 23 assert file(profiles).read().strip() == '[General]', 'profiles.ini isnt nearly empty' |
24 | 24 |
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 | 29 |
29 # Cleanup: | 30 # Cleanup: |
30 manager.remove('testprofile') | 31 manager.remove('testprofile') |
32 assert manager.list() == [] |