~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisiontree.py

  • Committer: Patch Queue Manager
  • Date: 2015-10-05 13:45:00 UTC
  • mfrom: (6603.3.1 bts794146)
  • Revision ID: pqm@pqm.ubuntu.com-20151005134500-v244rho557tv0ukd
(vila) Resolve Bug #1480015: Test failure: hexify removed from paramiko
 (Andrew Starr-Bochicchio) (Andrew Starr-Bochicchio)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2008-2012, 2016 Canonical Ltd
 
1
# Copyright (C) 2006, 2008-2011 Canonical Ltd
2
2
# Authors:  Robert Collins <robert.collins@canonical.com>
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
61
61
        self.assertIs(None, null_tree.get_root_id())
62
62
 
63
63
    def test_get_file_revision_root(self):
64
 
        self.assertEqual(self.rev_id,
 
64
        self.assertEquals(self.rev_id,
65
65
            self.rev_tree.get_file_revision(self.rev_tree.get_root_id()))
66
66
 
67
67
    def test_get_file_revision(self):
70
70
        revid1 = self.t.commit('add a')
71
71
        revid2 = self.t.commit('another change', allow_pointless=True)
72
72
        tree = self.t.branch.repository.revision_tree(revid2)
73
 
        self.assertEqual(revid1,
 
73
        self.assertEquals(revid1,
74
74
            tree.get_file_revision(tree.path2id('a')))
75
75
 
76
76
    def test_get_file_mtime_ghost(self):