/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: Robert Collins
  • Date: 2009-03-24 06:07:35 UTC
  • mto: This revision was merged to the branch mainline in revision 4199.
  • Revision ID: robertc@robertcollins.net-20090324060735-nk6ti3wq06062lvz
Allow optional inclusion of ghost data in server get_parent_map calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
914
914
 
915
915
        self.assertEqual(None,
916
916
            request.execute('', 'missing-id'))
917
 
        # Note that it returns a body (of '' bzipped).
 
917
        # Note that it returns a body that is bzipped.
918
918
        self.assertEqual(
919
919
            SuccessfulSmartServerResponse(('ok', ), bz2.compress('')),
920
920
            request.do_body('\n\n0\n'))
921
921
 
 
922
    def test_trivial_include_missing(self):
 
923
        backing = self.get_transport()
 
924
        request = smart.repository.SmartServerRepositoryGetParentMap(backing)
 
925
        tree = self.make_branch_and_memory_tree('.')
 
926
 
 
927
        self.assertEqual(None,
 
928
            request.execute('', 'missing-id', 'include-missing:'))
 
929
        self.assertEqual(
 
930
            SuccessfulSmartServerResponse(('ok', ),
 
931
                bz2.compress('missing:missing-id')),
 
932
            request.do_body('\n\n0\n'))
 
933
 
922
934
 
923
935
class TestSmartServerRepositoryGetRevisionGraph(tests.TestCaseWithMemoryTransport):
924
936