comparison profilemanager/tests/test.py @ 51:dc9324b52c2a

* add write convenience function * finish backup method
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 May 2010 09:59:08 -0700
parents 4cd6fc940407
children 6cb674db8f51
comparison
equal deleted inserted replaced
50:4cd6fc940407 51:dc9324b52c2a
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 35 # Backup the profile
36 manager.backup('testprofile') 36 manager.backup('testprofile')
37 manager.restore('testprofile') 37 # TODO: manager.restore('testprofile')
38 38
39 # Cleanup: 39 # Cleanup:
40 manager.remove('testprofile') 40 manager.remove('testprofile')
41 assert manager.list() == [] 41 assert manager.list() == []
42 f = file(profiles, 'w') 42 f = file(profiles, 'w')