~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 11:19:47 UTC
  • mto: (1534.1.24 integration)
  • mto: This revision was merged to the branch mainline in revision 1554.
  • Revision ID: robertc@robertcollins.net-20060216111947-e6946ac37fe8b21a
Correct buggy test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
984
984
            # if its updatable there must be an updater
985
985
            self.assertTrue(isinstance(dir._format.get_updater(),
986
986
                                       bzrdir.Converter))
987
 
        dir.needs_format_update()
 
987
        dir.needs_format_update(None)
988
988
 
989
989
    def test_upgrade_new_instance(self):
990
990
        """Does an available updater work ?."""
991
991
        dir = self.make_bzrdir('.')
992
992
        if dir.can_update_format():
993
 
            dir._format.get_updater().convert(dir, ui.ui_factory.progress_bar())
 
993
            dir._format.get_updater(None).convert(dir, ui.ui_factory.progress_bar())
994
994
            # and it should pass 'check' now.
995
995
            check(bzrdir.BzrDir.open(self.get_url('.')).open_branch(), False)
996
996