/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_smart.py

  • Committer: Jelmer Vernooij
  • Date: 2018-06-29 17:57:21 UTC
  • mto: This revision was merged to the branch mainline in revision 7026.
  • Revision ID: jelmer@jelmer.uk-20180629175721-ptg2fk3k2lul7lch
Fix some more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
848
848
    tests.TestCaseWithMemoryTransport):
849
849
 
850
850
    def test_empty(self):
851
 
        """For an empty branch, the result is ('ok', '0', 'null:')."""
 
851
        """For an empty branch, the result is ('ok', '0', b'null:')."""
852
852
        backing = self.get_transport()
853
853
        request = smart_branch.SmartServerBranchRequestLastRevisionInfo(backing)
854
854
        self.make_branch('.')
856
856
            request.execute(b''))
857
857
 
858
858
    def test_ghost(self):
859
 
        """For an empty branch, the result is ('ok', '0', 'null:')."""
 
859
        """For an empty branch, the result is ('ok', '0', b'null:')."""
860
860
        backing = self.get_transport()
861
861
        request = smart_branch.SmartServerBranchRequestLastRevisionInfo(backing)
862
862
        branch = self.make_branch('.')
1104
1104
    """Mixin test case for verbs that implement set_last_revision."""
1105
1105
 
1106
1106
    def test_set_null_to_null(self):
1107
 
        """An empty branch can have its last revision set to 'null:'."""
 
1107
        """An empty branch can have its last revision set to b'null:'."""
1108
1108
        self.assertRequestSucceeds(b'null:', 0)
1109
1109
 
1110
1110
    def test_NoSuchRevision(self):