Rev 3195: Remove a dead test method. in http://people.ubuntu.com/~robertc/baz2.0/search-results
Robert Collins
robertc at robertcollins.net
Thu Jan 17 07:49:14 GMT 2008
At http://people.ubuntu.com/~robertc/baz2.0/search-results
------------------------------------------------------------
revno: 3195
revision-id:robertc at robertcollins.net-20080117074909-2djxda9wvyl75edf
parent: robertc at robertcollins.net-20080117074752-1d1gyckmu7ej1i4u
committer: Robert Collins <robertc at robertcollins.net>
branch nick: stream-revisions-for-search
timestamp: Thu 2008-01-17 18:49:09 +1100
message:
Remove a dead test method.
modified:
bzrlib/tests/test_smart.py test_smart.py-20061122024551-ol0l0o0oofsu9b3t-2
=== modified file 'bzrlib/tests/test_smart.py'
--- a/bzrlib/tests/test_smart.py 2008-01-17 07:47:52 +0000
+++ b/bzrlib/tests/test_smart.py 2008-01-17 07:49:09 +0000
@@ -858,27 +858,6 @@
response = request.execute(backing.local_abspath(''))
self.assertEqual(None, response)
response = request.do_body("%s\n\n1" % (rev_id1_utf8,))
- self.assertEqual(('ok',), response.args)
- # There's no error initially.
- self.assertTrue(response.is_successful())
- self.assertEqual(('ok',), response.args)
- # We only get an error while streaming the body.
- body = list(response.body_stream)
- last_chunk = body[-1]
- self.assertIsInstance(last_chunk, FailedSmartServerResponse)
- self.assertEqual(
- last_chunk,
- FailedSmartServerResponse(('NoSuchRevision', rev_id1_utf8)))
-
- def test_no_such_revision_error(self):
- backing = self.get_transport()
- request = smart.repository.SmartServerRepositoryStreamRevisionsChunked(
- backing)
- repo = self.make_repository('.')
- rev_id1_utf8 = u'\xc8'.encode('utf-8')
- response = request.execute(backing.local_abspath(''))
- self.assertEqual(None, response)
- response = request.do_body("%s\n\n1" % (rev_id1_utf8,))
self.assertEqual(
FailedSmartServerResponse(('NoSuchRevision', )),
response)
More information about the bazaar-commits
mailing list