comparison profilemanager/tests/test.py @ 76:e76a122d8622

more verbose assertion
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 May 2010 17:22:38 -0700
parents b6bb59b79525
children 145e111903d2
comparison
equal deleted inserted replaced
75:a63dd19807c8 76:e76a122d8622
58 assert restored == old_backups[0], "Tried to restore from %d [%s], but got [%s]" % (restore_time, old_backups[0], restored) 58 assert restored == old_backups[0], "Tried to restore from %d [%s], but got [%s]" % (restore_time, old_backups[0], restored)
59 # TODO: test with alternate forms of date 59 # TODO: test with alternate forms of date
60 60
61 # Restore the newest profile 61 # Restore the newest profile
62 restored = manager.restore('testprofile') 62 restored = manager.restore('testprofile')
63 assert restored != old_backups[0], "Tried to restore the newest but got the old one" 63 assert restored != old_backups[0], "Tried to restore the newest but got the old one [%s]" % old_backups[0]
64 manager.restore('testprofile', delete=True) 64 manager.restore('testprofile', delete=True)
65 manager.restore('testprofile', delete=True) 65 manager.restore('testprofile', delete=True)
66 assert not manager.backups() 66 assert not manager.backups()
67 assert manager.list() == ['testprofile'] 67 assert manager.list() == ['testprofile']
68 68