~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

(jelmer) Cope with NoSuchRevision errors during ``Repository.gather_stats``
 HPSS call. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1719
1719
                         request.execute('',
1720
1720
                                         rev_id_utf8, 'yes'))
1721
1721
 
 
1722
    def test_unknown_revid(self):
 
1723
        """An unknown revision id causes a 'nosuchrevision' error."""
 
1724
        backing = self.get_transport()
 
1725
        request = smart_repo.SmartServerRepositoryGatherStats(backing)
 
1726
        repository = self.make_repository('.')
 
1727
        expected_body = 'revisions: 0\n'
 
1728
        self.assertEqual(
 
1729
            smart_req.FailedSmartServerResponse(
 
1730
                ('nosuchrevision', 'mia'), None),
 
1731
            request.execute('', 'mia', 'yes'))
 
1732
 
1722
1733
 
1723
1734
class TestSmartServerRepositoryIsShared(tests.TestCaseWithMemoryTransport):
1724
1735