~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_log.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-23 11:22:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6284.
  • Revision ID: jelmer@samba.org-20111123112256-e0k90g9zz3fj0zvg
Move log tests to bzrlib.tests.blackbox.test_log.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1636
1636
        # should now only have 2 revisions:
1637
1637
        self.assertEquals(len(log_formatter.revisions), 2)
1638
1638
 
1639
 
 
1640
 
class TestSmartServerLog(tests.TestCaseWithTransport):
1641
 
 
1642
 
    def test_standard_log(self):
1643
 
        self.setup_smart_server_with_call_log()
1644
 
        t = self.make_branch_and_tree('branch')
1645
 
        self.build_tree_contents([('branch/foo', 'thecontents')])
1646
 
        t.add("foo")
1647
 
        t.commit("message")
1648
 
        self.reset_smart_call_log()
1649
 
        out, err = self.run_bzr(['log', self.get_url('branch')])
1650
 
        # This figure represent the amount of work to perform this use case. It
1651
 
        # is entirely ok to reduce this number if a test fails due to rpc_count
1652
 
        # being too low. If rpc_count increases, more network roundtrips have
1653
 
        # become necessary for this use case. Please do not adjust this number
1654
 
        # upwards without agreement from bzr's network support maintainers.
1655
 
        self.assertLength(17, self.hpss_calls)
1656
 
 
1657
 
    def test_verbose_log(self):
1658
 
        self.setup_smart_server_with_call_log()
1659
 
        t = self.make_branch_and_tree('branch')
1660
 
        self.build_tree_contents([('branch/foo', 'thecontents')])
1661
 
        t.add("foo")
1662
 
        t.commit("message")
1663
 
        self.reset_smart_call_log()
1664
 
        out, err = self.run_bzr(['log', '-v', self.get_url('branch')])
1665
 
        # This figure represent the amount of work to perform this use case. It
1666
 
        # is entirely ok to reduce this number if a test fails due to rpc_count
1667
 
        # being too low. If rpc_count increases, more network roundtrips have
1668
 
        # become necessary for this use case. Please do not adjust this number
1669
 
        # upwards without agreement from bzr's network support maintainers.
1670
 
        self.assertLength(17, self.hpss_calls)