~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.py

  • Committer: Robert Collins
  • Date: 2006-02-16 08:51:52 UTC
  • mto: (1534.1.24 integration)
  • mto: This revision was merged to the branch mainline in revision 1554.
  • Revision ID: robertc@robertcollins.net-20060216085152-d0311d8efd0c654c
Make upgrade driver unaware of the specific formats in play.

Show diffs side-by-side

added added

removed removed

Lines of Context:
978
978
    def test_can_and_needs_upgrade_format(self):
979
979
        # check that we can ask an instance if its upgradable
980
980
        dir = self.make_bzrdir('.')
981
 
        dir.can_update_format()
 
981
        if dir.can_update_format():
 
982
            # if its updatable there must be an updater
 
983
            self.assertTrue(isinstance(dir._format.get_updater(),
 
984
                                       bzrdir.Converter))
982
985
        dir.needs_format_update()
983
986
 
984
987