diff profilemanager/tests/test.py @ 43:49cc40572f46

test cloning
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 06 May 2010 18:59:48 -0700
parents 30fc269a15c8
children 8eb997fd6e79
line wrap: on
line diff
--- a/profilemanager/tests/test.py	Thu May 06 18:56:34 2010 -0700
+++ b/profilemanager/tests/test.py	Thu May 06 18:59:48 2010 -0700
@@ -27,6 +27,10 @@
 assert profiledir.endswith('.testprofile'), 'profiledir should end with testprofile, instead it is %s' % profiledir
 assert manager.list() == ['testprofile']
 
+# Clone the profile:
+manager.clone('testprofile', 'cloneprofile')
+assert sorted(manager.list()) == ['cloneprofile', 'testprofile']
+
 # Cleanup:
 manager.remove('testprofile')
 assert manager.list() == []