At http://bzr.arbash-meinel.com/branches/bzr/brisbane/prefix
------------------------------------------------------------
revno: 3816
revision-id: [email protected]
parent: [email protected]
committer: John Arbash Meinel <[email protected]>
branch nick: prefix
timestamp: Wed 2009-01-07 13:18:12 -0600
message:
Change the apply_ab_empty and apply_empty_ab tests to make them slightly more
sha1 independent.
They generally are testing the serialized form, and not the actual key.
=== modified file 'bzrlib/tests/test_chk_map.py'
--- a/bzrlib/tests/test_chk_map.py 2009-01-07 19:10:21 +0000
+++ b/bzrlib/tests/test_chk_map.py 2009-01-07 19:18:12 +0000
@@ -62,17 +62,17 @@
class TestMap(TestCaseWithStore):
def assertHasABMap(self, chk_bytes):
- ab_leaf_bytes = 'chkleaf:\n0\n1\n1\na\x00b\n'
+ ab_leaf_bytes = 'chkleaf:\n0\n1\n1\n\na\x00b\n'
ab_sha1 = osutils.sha_string(ab_leaf_bytes)
- self.assertEqual('f14dd34def95036bc06bb5c0ed95437d7383a04a', ab_sha1)
+ self.assertEqual('e9a209c6d7af8bac47eb305ae3cd71b10f0cafa9', ab_sha1)
root_key = ('sha1:' + ab_sha1,)
self.assertEqual(ab_leaf_bytes, self.read_bytes(chk_bytes, root_key))
return root_key
def assertHasEmptyMap(self, chk_bytes):
- empty_leaf_bytes = 'chkleaf:\n0\n1\n0\n'
+ empty_leaf_bytes = 'chkleaf:\n0\n1\n0\n\n'
empty_sha1 = osutils.sha_string(empty_leaf_bytes)
- self.assertEqual('4e6482a3a5cb2d61699971ac77befe11a0ec5779',
empty_sha1)
+ self.assertEqual('8571e09bf1bcc5b9621ce31b3d4c93d6e9a1ed26',
empty_sha1)
root_key = ('sha1:' + empty_sha1,)
self.assertEqual(empty_leaf_bytes, self.read_bytes(chk_bytes,
root_key))
return root_key
--
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits