changeset 39:30fc269a15c8

* add additional tests * remove unused hash argument from ProfileManager.clone
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 18:08:08 -0700
parents 81500171fda8
children 34c740d1962d
files profilemanager/manager.py profilemanager/tests/test.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/profilemanager/manager.py	Thu May 06 18:01:03 2010 -0700
+++ b/profilemanager/manager.py	Thu May 06 18:08:08 2010 -0700
@@ -95,7 +95,7 @@
             return sorted(profiles.keys())
         return dict([(name, self.path(name)) for name in profiles.keys()])
 
-    def clone(self, source, dest, hash=True):
+    def clone(self, source, dest):
         """
         clones the profile `source` and output to `dest`
         """
--- a/profilemanager/tests/test.py	Thu May 06 18:01:03 2010 -0700
+++ b/profilemanager/tests/test.py	Thu May 06 18:08:08 2010 -0700
@@ -25,6 +25,8 @@
 # Create a new profile:
 profiledir = manager.new('testprofile')
 assert profiledir.endswith('.testprofile'), 'profiledir should end with testprofile, instead it is %s' % profiledir
+assert manager.list() == ['testprofile']
 
 # Cleanup:
 manager.remove('testprofile')
+assert manager.list() == []