~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transform.py

  • Committer: Aaron Bentley
  • Date: 2011-06-10 16:26:38 UTC
  • mto: (5954.6.3 795456-eager-test)
  • mto: This revision was merged to the branch mainline in revision 5968.
  • Revision ID: aaron@aaronbentley.com-20110610162638-9a04idkurszcymt1
Update no-expected-failure tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import sys
21
21
import time
22
22
 
 
23
from testtools import ExpectedException
 
24
 
23
25
from bzrlib import (
24
26
    bencode,
25
27
    errors,
291
293
        transform, root = self.get_transform()
292
294
        with transform:
293
295
            transform.delete_contents(root)
294
 
            transform.apply()
 
296
            with ExpectedException(AssertionError,
 
297
                                   'TransformRenameFailed not raised'):
 
298
                with ExpectedException(errors.TransformRenameFailed, ''):
 
299
                    transform.apply()
295
300
 
296
301
    def test_hardlink(self):
297
302
        self.requireFeature(HardlinkFeature)