/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/blackbox/test_info.py

  • Committer: Jelmer Vernooij
  • Date: 2020-06-19 21:26:53 UTC
  • mfrom: (7490.40.19 work)
  • mto: This revision was merged to the branch mainline in revision 7516.
  • Revision ID: jelmer@jelmer.uk-20200619212653-7j6rgywzczhc8cmj
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
from breezy.bzr import (
34
34
    bzrdir,
35
35
    )
36
 
from breezy.bzr.tests.matchers import ContainsNoVfsCalls
37
36
from breezy.transport import memory
38
37
 
39
38
 
1551
1550
         0 revisions
1552
1551
""", out)
1553
1552
        self.assertEqual("", err)
1554
 
 
1555
 
 
1556
 
class TestSmartServerInfo(tests.TestCaseWithTransport):
1557
 
 
1558
 
    def test_simple_branch_info(self):
1559
 
        self.setup_smart_server_with_call_log()
1560
 
        t = self.make_branch_and_tree('branch')
1561
 
        self.build_tree_contents([('branch/foo', b'thecontents')])
1562
 
        t.add("foo")
1563
 
        t.commit("message")
1564
 
        self.reset_smart_call_log()
1565
 
        out, err = self.run_bzr(['info', self.get_url('branch')])
1566
 
        # This figure represent the amount of work to perform this use case. It
1567
 
        # is entirely ok to reduce this number if a test fails due to rpc_count
1568
 
        # being too low. If rpc_count increases, more network roundtrips have
1569
 
        # become necessary for this use case. Please do not adjust this number
1570
 
        # upwards without agreement from bzr's network support maintainers.
1571
 
        self.assertLength(10, self.hpss_calls)
1572
 
        self.assertLength(1, self.hpss_connections)
1573
 
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
1574
 
 
1575
 
    def test_verbose_branch_info(self):
1576
 
        self.setup_smart_server_with_call_log()
1577
 
        t = self.make_branch_and_tree('branch')
1578
 
        self.build_tree_contents([('branch/foo', b'thecontents')])
1579
 
        t.add("foo")
1580
 
        t.commit("message")
1581
 
        self.reset_smart_call_log()
1582
 
        out, err = self.run_bzr(['info', '-v', self.get_url('branch')])
1583
 
        # This figure represent the amount of work to perform this use case. It
1584
 
        # is entirely ok to reduce this number if a test fails due to rpc_count
1585
 
        # being too low. If rpc_count increases, more network roundtrips have
1586
 
        # become necessary for this use case. Please do not adjust this number
1587
 
        # upwards without agreement from bzr's network support maintainers.
1588
 
        self.assertLength(14, self.hpss_calls)
1589
 
        self.assertLength(1, self.hpss_connections)
1590
 
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)