~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_update.py

  • Committer: Aaron Bentley
  • Date: 2007-07-11 14:58:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2606.
  • Revision ID: abentley@panoramicfeedback.com-20070711145854-06486yosdvexapy1
Got all tests passing with Branch returning 'null:' for null revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
 
18
 
import bzrlib.errors as errors
 
18
from bzrlib import (
 
19
    errors,
 
20
    revision as _mod_revision,
 
21
    )
19
22
from bzrlib.tests.branch_implementations.test_branch import TestCaseWithBranch
20
23
 
21
24
 
27
30
    def test_update_unbound_works(self):
28
31
        b = self.make_branch('.')
29
32
        b.update()
30
 
        self.assertEqual(None, b.last_revision())
 
33
        self.assertEqual(_mod_revision.NULL_REVISION, b.last_revision())
31
34
 
32
35
    def test_update_prefix_returns_none(self):
33
36
        # update in a branch when its a prefix of the master should