~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_filtered_view_ops.py

  • Committer: Patch Queue Manager
  • Date: 2016-01-15 09:21:49 UTC
  • mfrom: (6606.2.1 autodoc-unicode)
  • Revision ID: pqm@pqm.ubuntu.com-20160115092149-z5f4sfq3jvaz0enb
(vila) Fix autodoc runner when LANG=C. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests that an enabled view is reported and impacts expected commands."""
18
18
 
19
 
import os
20
 
 
21
19
from bzrlib import (
22
 
    bzrdir,
23
20
    osutils,
24
21
    tests,
25
22
    )
28
25
class TestViewFileOperations(tests.TestCaseWithTransport):
29
26
 
30
27
    def make_abc_tree_with_ab_view(self):
31
 
        # we need to use a specific format because the default format
32
 
        # doesn't support views yet
33
 
        format = bzrdir.format_registry.make_bzrdir('development6-rich-root')
34
 
        wt = self.make_branch_and_tree( '.', format=format)
 
28
        wt = self.make_branch_and_tree('.')
35
29
        self.build_tree(['a', 'b', 'c'])
36
30
        wt.views.set_view('my', ['a', 'b'])
37
31
        return wt
156
150
class TestViewTreeOperations(tests.TestCaseWithTransport):
157
151
 
158
152
    def make_abc_tree_and_clone_with_ab_view(self):
159
 
        # we need to use a specific format because the default format
160
 
        # doesn't support views yet
161
 
        format = bzrdir.format_registry.make_bzrdir('development6-rich-root')
162
153
        # Build the first tree
163
 
        wt1 = self.make_branch_and_tree('tree_1', format=format)
 
154
        wt1 = self.make_branch_and_tree('tree_1')
164
155
        self.build_tree(['tree_1/a', 'tree_1/b', 'tree_1/c'])
165
156
        wt1.add(['a', 'b', 'c'])
166
157
        wt1.commit("adding a b c")