~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2011-12-06 16:30:08 UTC
  • mfrom: (6345.2.3 hpss-call-counts-3)
  • Revision ID: pqm@pqm.ubuntu.com-20111206163008-eoqz60dpbysebble
(jelmer) Fix HPSS call count for 'bzr co --lightweight' and add more HPSS
 call count tests. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1085
1085
        # become necessary for this use case. Please do not adjust this number
1086
1086
        # upwards without agreement from bzr's network support maintainers.
1087
1087
        self.assertLength(19, self.hpss_calls)
 
1088
 
 
1089
    def test_per_file(self):
 
1090
        self.setup_smart_server_with_call_log()
 
1091
        t = self.make_branch_and_tree('branch')
 
1092
        self.build_tree_contents([('branch/foo', 'thecontents')])
 
1093
        t.add("foo")
 
1094
        t.commit("message")
 
1095
        self.reset_smart_call_log()
 
1096
        out, err = self.run_bzr(['log', '-v', self.get_url('branch') + "/foo"])
 
1097
        # This figure represent the amount of work to perform this use case. It
 
1098
        # is entirely ok to reduce this number if a test fails due to rpc_count
 
1099
        # being too low. If rpc_count increases, more network roundtrips have
 
1100
        # become necessary for this use case. Please do not adjust this number
 
1101
        # upwards without agreement from bzr's network support maintainers.
 
1102
        self.assertLength(21, self.hpss_calls)