Rev 5414: Clarify test intent and behaviour. in file:///home/vila/src/bzr/bugs/323111-orphans/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Thu Sep 9 20:50:57 BST 2010
At file:///home/vila/src/bzr/bugs/323111-orphans/
------------------------------------------------------------
revno: 5414
revision-id: v.ladeuil+lp at free.fr-20100909195057-hkvsb6k9zh1sqq7e
parent: v.ladeuil+lp at free.fr-20100907130555-6ocpql16nzjr4808
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: cleanup
timestamp: Thu 2010-09-09 21:50:57 +0200
message:
Clarify test intent and behaviour.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_transform.py'
--- a/bzrlib/tests/test_transform.py 2010-09-07 10:53:24 +0000
+++ b/bzrlib/tests/test_transform.py 2010-09-09 19:50:57 +0000
@@ -821,9 +821,13 @@
parent = tt.trans_id_file_id('parent-id')
tt.new_file('file', parent, 'Contents')
raw_conflicts = resolve_conflicts(tt)
+ # Since the directory doesn't exist it's seen as missing to resolve
+ # create a conflict asking for it to be created.
self.assertLength(1, raw_conflicts)
self.assertEqual(('missing parent', 'Created directory', 'new-1'),
raw_conflicts.pop())
+ # apply fail since the missing directory doesn't exist
+ self.assertRaises(errors.NoFinalPath, tt.apply)
def test_moving_versioned_directories(self):
create, root = self.get_transform()
More information about the bazaar-commits
mailing list