-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_workingtree.pyc

ó
î:ïNc@@srdZddlmZddlZddlmZmZddlmZddl	m
Z
defd„ƒYZdS(	s)Tests for weave-era working tree formats.i(tabsolute_importN(t	conflictsterrors(tTestCaseWithTransport(t
BzrDirFormat6tTestFormat2WorkingTreecB@s)eZdZd„Zd„Zd„ZRS(s*Tests that are specific to format 2 trees.cC@s|j|dtƒƒS(Ntformat(tmake_branch_and_treeR(tselfturl((sM/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_workingtree.pytcreate_format2_tree'scC@sx|jdƒ}|jtj|jdƒtddƒjdƒtj	dƒ}|j
t|jƒƒ|gƒtddƒjdƒ|jddƒtj	dddƒ}|j
t|jƒƒ|gƒtd	dƒjd
ƒtddƒjdƒtj
dddƒ}|j
t|jƒƒ|gƒtjdƒtjdƒtj	dddƒ}|j
t|jƒƒ|gƒdS(
Nt.s	lala.BASEtwbtlabasetlalatlaslala-idtfile_ids	lala.THIStlathiss
lala.OTHERtlaother(R
tassertRaisesRtUnsupportedOperationt
set_conflictstNonetfiletwriteRtContentsConflicttassertEqualtlisttaddtTextConflicttostunlinktmkdir(Rttreetexpected((sM/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_workingtree.pyttest_conflicts+s$

cC@s=|jdƒ}|jddddddgƒ|jƒ|jdt|jƒƒƒ|jƒ|jƒ}|jd|ƒ|jd|dj	kƒ|jd|dj	kƒtj
dƒtj
dƒ|jd|jƒƒ|jddƒ|jt
j	jdƒƒ|jtjtj
dƒ|jtjtj
dƒdS(sConflicts are detected properlyRthelloshello world4s
hello.THISshello world2s
hello.BASEshello world1shello.OTHERshello world3shello.sploo.BASEtyellowworldshello.sploo.OTHERtyellowworld2iiishello.splooiN(R$shello world4(s
hello.THISshello world2(s
hello.BASEshello world1(shello.OTHERshello world3(shello.sploo.BASER%(shello.sploo.OTHERR&(R
tbuild_tree_contentst	lock_readtassertLengthRt
list_filestunlockRt
assertTruetpathtrestoretassertFileEqualtassertFalseRtlexistsRRt
NotConflicted(RR!ttree_conflicts((sM/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_workingtree.pyttest_detect_conflictsAs,	




(t__name__t
__module__t__doc__R
R#R4(((sM/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_workingtree.pyR$s		(R7t
__future__RRtbzrlibRRtbzrlib.testsRtbzrlib.plugins.weave_fmt.bzrdirRR(((sM/usr/lib/python2.7/dist-packages/bzrlib/plugins/weave_fmt/test_workingtree.pyt<module>s

Copyright © 2017 || Recoded By Mr.Bumblebee