changeset 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
files profilemanager/manager.py profilemanager/tests/test.py
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/profilemanager/manager.py	Fri May 07 09:27:39 2010 -0700
+++ b/profilemanager/manager.py	Fri May 07 09:43:35 2010 -0700
@@ -5,6 +5,7 @@
 import os
 import shutil
 import string
+import time
 import ConfigParser
 from random import Random
 from utils import format_tabular
@@ -153,6 +154,7 @@
         
         # add backup entry to profiles.ini:
         # `Backup=$(profile)s.$(datestamp)s.bak`
+        import pdb; pdb.set_trace()
         raise NotImplementedError
 
 
--- a/profilemanager/tests/test.py	Fri May 07 09:27:39 2010 -0700
+++ b/profilemanager/tests/test.py	Fri May 07 09:43:35 2010 -0700
@@ -32,6 +32,10 @@
 assert sorted(manager.list()) == ['cloneprofile', 'testprofile']
 manager.remove('cloneprofile')
 
+# Backup the profile
+manager.backup('testprofile')
+manager.restore('testprofile')
+
 # Cleanup:
 manager.remove('testprofile')
 assert manager.list() == []