~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2011-12-14 12:53:59 UTC
  • mfrom: (6352.2.5 hpss-no-vfs)
  • Revision ID: pqm@pqm.ubuntu.com-20111214125359-l2d2nv046utd1vfz
(jelmer) Add ContainsNoVfsCalls matcher. (Jelmer Vernooij)

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 ContainsNoVfsCalls
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, ContainsNoVfsCalls)
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, ContainsNoVfsCalls)