~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

  • Committer: Robert Collins
  • Date: 2009-12-16 22:29:31 UTC
  • mto: This revision was merged to the branch mainline in revision 4920.
  • Revision ID: robertc@robertcollins.net-20091216222931-wbbn5ey4mwmpatwd
Review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2892
2892
        self.assertEqual(server_error, translated_error)
2893
2893
        # In addition to re-raising ErrorFromSmartServer, some debug info has
2894
2894
        # been muttered to the log file for developer to look at.
2895
 
        log = u"".join(self.getDetails()['log'].iter_text())
2896
2895
        self.assertContainsRe(
2897
 
            log,
 
2896
            self.get_log(),
2898
2897
            "Missing key 'branch' in context")
2899
2898
 
2900
2899
    def test_path_missing(self):
2908
2907
        self.assertEqual(server_error, translated_error)
2909
2908
        # In addition to re-raising ErrorFromSmartServer, some debug info has
2910
2909
        # been muttered to the log file for developer to look at.
2911
 
        log = u"".join(self.getDetails()['log'].iter_text())
2912
 
        self.assertContainsRe(log, "Missing key 'path' in context")
 
2910
        self.assertContainsRe(self.get_log(), "Missing key 'path' in context")
2913
2911
 
2914
2912
 
2915
2913
class TestStacking(tests.TestCaseWithTransport):