/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/per_workingtree/test_views.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
"""
22
22
 
23
23
 
24
 
from bzrlib import views, errors
25
 
from bzrlib.tests import TestNotApplicable, TestSkipped
26
 
from bzrlib.workingtree import WorkingTree
 
24
from breezy import views, errors
 
25
from breezy.tests import TestNotApplicable, TestSkipped
 
26
from breezy.workingtree import WorkingTree
27
27
 
28
 
from bzrlib.tests.per_workingtree import TestCaseWithWorkingTree
 
28
from breezy.tests.per_workingtree import TestCaseWithWorkingTree
29
29
 
30
30
 
31
31
class TestTreeViews(TestCaseWithWorkingTree):
116
116
        wt = self.make_branch_and_tree('wt')
117
117
        try:
118
118
            wt.views.lookup_view('opaque')
119
 
        except errors.NoSuchView, e:
 
119
        except errors.NoSuchView as e:
120
120
            self.assertEqual(e.view_name, 'opaque')
121
121
            self.assertEqual(str(e), 'No such view: opaque.')
122
122
        else: