~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

  • Committer: Andrew Bennetts
  • Date: 2007-08-13 06:24:32 UTC
  • mto: (2535.4.4 streaming-smart-fetch)
  • mto: This revision was merged to the branch mainline in revision 2906.
  • Revision ID: andrew.bennetts@canonical.com-20070813062432-egj0ykxl4k3yuw5e
Tidy up more XXXs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
794
794
            # XXX: assert that the bencoded knit records have the right
795
795
            # contents?
796
796
        
797
 
    # test: no such revision error
 
797
    def test_no_such_revision_error(self):
 
798
        backing = self.get_transport()
 
799
        request = smart.repository.SmartServerRepositoryFetchRevisions(backing)
 
800
        repo = self.make_repository('.')
 
801
        rev_id1_utf8 = u'\xc8'.encode('utf-8')
 
802
        response = request.execute(backing.local_abspath(''), rev_id1_utf8)
 
803
        self.assertEqual(
 
804
            SmartServerResponse(('NoSuchRevision', rev_id1_utf8)),
 
805
            response)
798
806
 
799
807
 
800
808
class TestSmartServerIsReadonly(tests.TestCaseWithTransport):