~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Use new NoVfsCalls matcher in blackbox tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from bzrlib.tests import (
28
28
    TestCaseWithTransport,
29
29
    )
 
30
from bzrlib.tests.matchers import NoVfsCalls
30
31
from bzrlib.tests.features import (
31
32
    HardlinkFeature,
32
33
    )
186
187
        # become necessary for this use case. Please do not adjust this number
187
188
        # upwards without agreement from bzr's network support maintainers.
188
189
        self.assertLength(17, self.hpss_calls)
 
190
        self.expectFailure("checkouts require VFS access",
 
191
            self.assertThat, self.hpss_calls, NoVfsCalls)
189
192
 
190
193
    def test_lightweight_checkout(self):
191
194
        self.setup_smart_server_with_call_log()
204
207
            self.fail(
205
208
                "Incorrect length: wanted between 34 and 48, got %d for %r" % (
206
209
                    len(self.hpss_calls), self.hpss_calls))
 
210
        self.expectFailure("lightweight checkouts require VFS calls",
 
211
            self.assertThat, self.hpss_calls, NoVfsCalls)