~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

Implement RemoteBranch.revision_history().

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
 
63
63
    def test_remote_branch_revision_history(self):
64
64
        b = BzrDir.open_from_transport(self.transport).open_branch()
65
 
        rh = b.revision_history()
66
 
        self.assertEqual(len(rh), 0)
 
65
        self.assertEqual([], b.revision_history())
 
66
        r1 = self.local_wt.commit('1st commit')
 
67
        r2 = self.local_wt.commit('1st commit', rev_id=u'\xc8')
 
68
        self.assertEqual([r1, r2], b.revision_history())
67
69
 
68
70
    def test_find_correct_format(self):
69
71
        """Should open a RemoteBzrDir over a RemoteTransport"""