/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-24 23:19:12 UTC
  • mfrom: (4190.1.6 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090324231912-rb0kgktzkvge8aea
(robertc) Negatively cache ghosts and misses during read-locks in
        RemoteRepository. (Robert Collins, Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
931
931
 
932
932
        self.assertEqual(None,
933
933
            request.execute('', 'missing-id'))
934
 
        # Note that it returns a body (of '' bzipped).
 
934
        # Note that it returns a body that is bzipped.
935
935
        self.assertEqual(
936
936
            SuccessfulSmartServerResponse(('ok', ), bz2.compress('')),
937
937
            request.do_body('\n\n0\n'))
938
938
 
 
939
    def test_trivial_include_missing(self):
 
940
        backing = self.get_transport()
 
941
        request = smart.repository.SmartServerRepositoryGetParentMap(backing)
 
942
        tree = self.make_branch_and_memory_tree('.')
 
943
 
 
944
        self.assertEqual(None,
 
945
            request.execute('', 'missing-id', 'include-missing:'))
 
946
        self.assertEqual(
 
947
            SuccessfulSmartServerResponse(('ok', ),
 
948
                bz2.compress('missing:missing-id')),
 
949
            request.do_body('\n\n0\n'))
 
950
 
939
951
 
940
952
class TestSmartServerRepositoryGetRevisionGraph(tests.TestCaseWithMemoryTransport):
941
953