198
198
checkout = self.make_modified_checkout()
199
199
branch = self.make_branch('branch')
200
200
checkout.branch.set_parent(branch.base)
201
e = self.assertRaises(AssertionError, zap, 'checkout',
201
e = self.assertRaises(BzrCommandError, zap, 'checkout',
202
202
policy=StoreChanges, remove_branch=True)
203
203
self.assertEqual('Cannot store changes in deleted branch.', str(e))