~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

  • Committer: Andrew Bennetts
  • Date: 2009-07-16 05:22:50 UTC
  • mto: This revision was merged to the branch mainline in revision 4540.
  • Revision ID: andrew.bennetts@canonical.com-20090716052250-6zxzt77qk4eofb6j
Adjust according to Robert's review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
    def add_unknown_method_response(self, verb):
232
232
        self.responses.append(('unknown', verb))
233
233
 
 
234
    def finished_test(self):
 
235
        if self._expected_calls:
 
236
            raise AssertionError("%r finished but was still expecting %r"
 
237
                % (self, self._expected_calls[0]))
 
238
 
234
239
    def _get_next_response(self):
235
240
        try:
236
241
            response_tuple = self.responses.pop(0)
338
343
 
339
344
    def assertFinished(self, fake_client):
340
345
        """Assert that all of a FakeClient's expected calls have occurred."""
341
 
        if fake_client._expected_calls:
342
 
            raise AssertionError("%r finished but was still expecting %r"
343
 
                % (fake_client, fake_client._expected_calls[0]))
 
346
        fake_client.finished_test()
344
347
 
345
348
 
346
349
class Test_ClientMedium_remote_path_from_transport(tests.TestCase):