~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2007-07-15 11:24:18 UTC
  • mfrom: (2617 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070715112418-9nn4n6esxv60ny4b
merge bzr.dev@1617

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,
 
34
                         _mod_revision.ensure_null(b.last_revision()))
31
35
 
32
36
    def test_update_prefix_returns_none(self):
33
37
        # update in a branch when its a prefix of the master should