~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transform.py

  • Committer: Aaron Bentley
  • Date: 2007-06-06 01:28:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2509.
  • Revision ID: aaron.bentley@utoronto.ca-20070606012818-ubf8cmaj1imntttb
Updates from review

Show diffs side-by-side

added added

removed removed

Lines of Context:
934
934
        except OSError:
935
935
            self.fail('Tried to remove parent before child1')
936
936
 
937
 
    def test_cancel_no_content_child(self):
 
937
    def test_cancel_with_cancelled_child_should_succeed(self):
938
938
        transform, root = self.get_transform()
939
939
        parent = transform.new_directory('parent', root)
940
940
        child = transform.new_directory('child', parent)
941
941
        transform.cancel_creation(child)
942
 
        try:
943
 
            transform.cancel_creation(parent)
944
 
        except OSError:
945
 
            self.fail('Transform tried to move a deleted child')
 
942
        transform.cancel_creation(parent)
946
943
        transform.finalize()
947
944
 
948
945