/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_commit.py

  • Committer: Jelmer Vernooij
  • Date: 2018-08-01 19:37:07 UTC
  • mto: This revision was merged to the branch mainline in revision 7058.
  • Revision ID: jelmer@jelmer.uk-20180801193707-dyecqwo0y2z4cpk9
Fix a few more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        wt.add('hello')
130
130
        revid = wt.commit(message='add hello', lossy=True,
131
131
            timestamp=1302659388, timezone=0)
132
 
        self.assertEqual('dummy-v1:1302659388.0-0-UNKNOWN', revid)
 
132
        self.assertEqual(b'dummy-v1:1302659388.0-0-UNKNOWN', revid)
133
133
 
134
134
    def test_commit_bound_lossy_foreign(self):
135
135
        """Attempt a lossy commit to a bzr branch bound to a foreign branch."""
142
142
        wt.add('hello')
143
143
        revid = wt.commit(message='add hello', lossy=True,
144
144
            timestamp=1302659388, timezone=0)
145
 
        self.assertEqual('dummy-v1:1302659388.0-0-0', revid)
146
 
        self.assertEqual('dummy-v1:1302659388.0-0-0',
 
145
        self.assertEqual(b'dummy-v1:1302659388.0-0-0', revid)
 
146
        self.assertEqual(b'dummy-v1:1302659388.0-0-0',
147
147
            foreign_branch.last_revision())
148
 
        self.assertEqual('dummy-v1:1302659388.0-0-0',
 
148
        self.assertEqual(b'dummy-v1:1302659388.0-0-0',
149
149
            wt.branch.last_revision())
150
150
 
151
151
    def test_missing_commit(self):