# HG changeset patch # User Jeff Hammel # Date 1273194488 25200 # Node ID 30fc269a15c8ce9545ed2e2f038c9f0f31c20bd6 # Parent 81500171fda8a62708cb416932b227a1af077abb * add additional tests * remove unused hash argument from ProfileManager.clone diff -r 81500171fda8 -r 30fc269a15c8 profilemanager/manager.py --- 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` """ diff -r 81500171fda8 -r 30fc269a15c8 profilemanager/tests/test.py --- 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() == []