/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_remote.py

  • Committer: Patch Queue Manager
  • Date: 2011-11-25 11:42:24 UTC
  • mfrom: (6280.3.4 hpss-all-revision-ids)
  • Revision ID: pqm@pqm.ubuntu.com-20111125114224-ab9cggsgzzw3118l
(jelmer) Add ``Repository.all_revision_ids`` HPSS call. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2121
2121
            remote_repo_format.get_format_description())
2122
2122
 
2123
2123
 
 
2124
class TestRepositoryAllRevisionIds(TestRemoteRepository):
 
2125
 
 
2126
    def test_empty(self):
 
2127
        transport_path = 'quack'
 
2128
        repo, client = self.setup_fake_client_and_repository(transport_path)
 
2129
        client.add_success_response_with_body('', 'ok')
 
2130
        self.assertEquals([], repo.all_revision_ids())
 
2131
        self.assertEqual(
 
2132
            [('call_expecting_body', 'Repository.all_revision_ids',
 
2133
             ('quack/',))],
 
2134
            client._calls)
 
2135
 
 
2136
    def test_with_some_content(self):
 
2137
        transport_path = 'quack'
 
2138
        repo, client = self.setup_fake_client_and_repository(transport_path)
 
2139
        client.add_success_response_with_body(
 
2140
            'rev1\nrev2\nanotherrev\n', 'ok')
 
2141
        self.assertEquals(["rev1", "rev2", "anotherrev"],
 
2142
            repo.all_revision_ids())
 
2143
        self.assertEqual(
 
2144
            [('call_expecting_body', 'Repository.all_revision_ids',
 
2145
             ('quack/',))],
 
2146
            client._calls)
 
2147
 
 
2148
 
2124
2149
class TestRepositoryGatherStats(TestRemoteRepository):
2125
2150
 
2126
2151
    def test_revid_none(self):