~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-20 03:50:35 UTC
  • mfrom: (1740.5.9 bzr.mbp.traceback)
  • Revision ID: pqm@pqm.ubuntu.com-20060620035035-a9a7dc096fed5060
(mbp) show traceback on stderr on unexpected errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    def test_no_repo(self):
28
28
        dir = bzrdir.BzrDir.create(self.get_url())
29
29
        error = errors.NoRepositoryPresent(dir)
30
 
        self.assertNotEqual(-1, str(error).find(repr(dir.transport.clone('..').base)))
31
 
        self.assertEqual(-1, str(error).find(repr(dir.transport.base)))
 
30
        self.assertNotEqual(-1, str(error).find((dir.transport.clone('..').base)))
 
31
        self.assertEqual(-1, str(error).find((dir.transport.base)))
32
32
 
33
33
    def test_up_to_date(self):
34
34
        error = errors.UpToDateFormat(bzrdir.BzrDirFormat4())