91
91
def test_commit_sets_last_revision(self):
92
92
tree = self.make_branch_and_tree('tree')
94
94
self.assertEqual(['foo'], tree.get_parent_ids())
95
95
# the commit should have returned the same id we asked for.
96
96
self.assertEqual('foo', committed_id)
98
98
def test_commit_returns_revision_id(self):
99
99
tree = self.make_branch_and_tree('.')
101
101
self.assertTrue(tree.branch.repository.has_revision(committed_id))
102
102
self.assertNotEqual(None, committed_id)