~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

  • Committer: Andrew Bennetts
  • Date: 2007-04-19 04:29:20 UTC
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: andrew.bennetts@canonical.com-20070419042920-fwr334s98mbcxh5e
Use 'null:' instead of '' to mean NULL_REVISION on the wire.

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
class TestSmartServerBranchRequestLastRevisionInfo(tests.TestCaseWithTransport):
230
230
 
231
231
    def test_empty(self):
232
 
        """For an empty branch, the result is ('ok', '0', '')."""
 
232
        """For an empty branch, the result is ('ok', '0', 'null:')."""
233
233
        backing = self.get_transport()
234
234
        request = smart.branch.SmartServerBranchRequestLastRevisionInfo(backing)
235
235
        self.make_branch('.')
236
 
        self.assertEqual(SmartServerResponse(('ok', '0', '')),
 
236
        self.assertEqual(SmartServerResponse(('ok', '0', 'null:')),
237
237
            request.execute(backing.local_abspath('')))
238
238
 
239
239
    def test_not_empty(self):
288
288
        try:
289
289
            self.assertEqual(SmartServerResponse(('ok',)),
290
290
                request.execute(
291
 
                    backing.local_abspath(''), branch_token, repo_token, ''))
 
291
                    backing.local_abspath(''), branch_token, repo_token,
 
292
                    'null:'))
292
293
        finally:
293
294
            b.unlock()
294
295