Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/tests/test.py @ 50:4cd6fc940407
* test backup
* import needed time
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 07 May 2010 09:43:35 -0700 |
parents | cbd471e0146f |
children | dc9324b52c2a |
comparison
equal
deleted
inserted
replaced
49:cbd471e0146f | 50:4cd6fc940407 |
---|---|
30 # Clone the profile: | 30 # Clone the profile: |
31 manager.clone('testprofile', 'cloneprofile') | 31 manager.clone('testprofile', 'cloneprofile') |
32 assert sorted(manager.list()) == ['cloneprofile', 'testprofile'] | 32 assert sorted(manager.list()) == ['cloneprofile', 'testprofile'] |
33 manager.remove('cloneprofile') | 33 manager.remove('cloneprofile') |
34 | 34 |
35 # Backup the profile | |
36 manager.backup('testprofile') | |
37 manager.restore('testprofile') | |
38 | |
35 # Cleanup: | 39 # Cleanup: |
36 manager.remove('testprofile') | 40 manager.remove('testprofile') |
37 assert manager.list() == [] | 41 assert manager.list() == [] |
38 f = file(profiles, 'w') | 42 f = file(profiles, 'w') |
39 print >> f, '[General]' | 43 print >> f, '[General]' |