Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/tests/test.py @ 35:b9d7f5f61e23
correct syntax error
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 06 May 2010 17:47:51 -0700 |
parents | 5a27ad649768 |
children | 30fc269a15c8 |
comparison
equal
deleted
inserted
replaced
34:5a27ad649768 | 35:b9d7f5f61e23 |
---|---|
22 assert os.listdir(profiles_dir) == ['profiles.ini'], 'profiles_dir isnt empty except profiles.ini' | 22 assert os.listdir(profiles_dir) == ['profiles.ini'], 'profiles_dir isnt empty except profiles.ini' |
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 | 28 |
29 # Cleanup: | 29 # Cleanup: |
30 manager.remove('testprofile') | 30 manager.remove('testprofile') |