~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.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:
28
28
    errors,
29
29
    lockdir,
30
30
    repository,
 
31
    revision as _mod_revision,
31
32
    transactions,
32
33
    transport,
33
34
    ui,
586
587
        repo.fetch(tree.branch.repository)
587
588
        self.assertTrue(repo.has_revision('1'))
588
589
        try:
589
 
            self.assertIs(dir.open_branch().last_revision(), None)
 
590
            self.assertTrue(
 
591
                _mod_revision.is_null(dir.open_branch().last_revision()))
590
592
        except errors.NotBranchError:
591
593
            pass
592
594
        target = self.sproutOrSkip(dir, self.get_url('target'))