##// END OF EJS Templates
codingstyle: rename variable "hex" (conflicting with builtin)
Lars Kruse -
r6795:20f32aeb default
parent child Browse files
Show More
@@ -273,9 +273,9 b' class GitChangesetTest(unittest.TestCase'
273 the revision. This test is somewhat hard to write as order of tests
273 the revision. This test is somewhat hard to write as order of tests
274 is a key here. Written by running command after command in a shell.
274 is a key here. Written by running command after command in a shell.
275 """
275 """
276 hex = '2a13f185e4525f9d4b59882791a2d397b90d5ddc'
276 commit_id = '2a13f185e4525f9d4b59882791a2d397b90d5ddc'
277 self.assertTrue(hex in self.repo.revisions)
277 self.assertTrue(commit_id in self.repo.revisions)
278 chset = self.repo.get_changeset(hex)
278 chset = self.repo.get_changeset(commit_id)
279 self.assertTrue(len(chset.nodes) == 0)
279 self.assertTrue(len(chset.nodes) == 0)
280 root = chset.root
280 root = chset.root
281 self.assertTrue(len(chset.nodes) == 1)
281 self.assertTrue(len(chset.nodes) == 1)
@@ -296,8 +296,8 b' class GitChangesetTest(unittest.TestCase'
296 self.assertTrue(docs is chset.get_node('docs'))
296 self.assertTrue(docs is chset.get_node('docs'))
297
297
298 def test_nodes_with_changeset(self):
298 def test_nodes_with_changeset(self):
299 hex = '2a13f185e4525f9d4b59882791a2d397b90d5ddc'
299 commit_id = '2a13f185e4525f9d4b59882791a2d397b90d5ddc'
300 chset = self.repo.get_changeset(hex)
300 chset = self.repo.get_changeset(commit_id)
301 root = chset.root
301 root = chset.root
302 docs = root.get_node('docs')
302 docs = root.get_node('docs')
303 self.assertTrue(docs is chset.get_node('docs'))
303 self.assertTrue(docs is chset.get_node('docs'))
General Comments 0
You need to be logged in to leave comments. Login now