changeset 68:6cb674db8f51

more backup+restore testing
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 May 2010 15:56:02 -0700
parents 7da81d5545a2
children 86b137d49467
files profilemanager/tests/test.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/profilemanager/tests/test.py	Fri May 07 15:40:45 2010 -0700
+++ b/profilemanager/tests/test.py	Fri May 07 15:56:02 2010 -0700
@@ -34,7 +34,11 @@
 
 # Backup the profile
 manager.backup('testprofile')
-# TODO: manager.restore('testprofile')
+backups = manager.backups('testprofile')
+assert len(backups) == 1, "Expected one backup, instead got %d" % len(backups)
+assert backups[0][0].startswith('testprofile')
+manager.restore('testprofile')
+manager.restore('testprofile', delete=True)
 
 # Cleanup:
 manager.remove('testprofile')