~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_serve.py

  • Committer: Aaron Bentley
  • Date: 2007-07-10 21:18:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2606.
  • Revision ID: abentley@panoramicfeedback.com-20070710211854-93ofaa70day2p8d3
Start eliminating the use of None to indicate null revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
from bzrlib import (
27
27
    errors,
28
28
    osutils,
 
29
    revision as _mod_revision,
29
30
    )
30
31
from bzrlib.branch import Branch
31
32
from bzrlib.bzrdir import BzrDir
107
108
        # We get a working branch
108
109
        branch = BzrDir.open_from_transport(transport).open_branch()
109
110
        branch.repository.get_revision_graph()
110
 
        self.assertEqual(None, branch.last_revision())
 
111
        self.assertEqual(_mod_revision.NULL_REVISION, branch.last_revision())
111
112
        self.assertInetServerShutsdownCleanly(process)
112
113
 
113
114
    def test_bzr_serve_port_readonly(self):
128
129
 
129
130
        # We get a working branch
130
131
        branch.repository.get_revision_graph()
131
 
        self.assertEqual(None, branch.last_revision())
 
132
        self.assertEqual(_mod_revision.NULL_REVISION, branch.last_revision())
132
133
 
133
134
        self.assertServerFinishesCleanly(process)
134
135
 
207
208
                'bzr+ssh://fred:secret@localhost:%d%s' % (port, path_to_branch))
208
209
            
209
210
            branch.repository.get_revision_graph()
210
 
            self.assertEqual(None, branch.last_revision())
 
211
            self.assertEqual(_mod_revision.NULL_REVISION,
 
212
                             branch.last_revision())
211
213
            # Check we can perform write operations
212
214
            branch.bzrdir.root_transport.mkdir('foo')
213
215
        finally: