/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: Canonical.com Patch Queue Manager
  • Date: 2011-02-10 16:30:54 UTC
  • mfrom: (5651.3.9 extra-repo-format)
  • Revision ID: pqm@pqm.ubuntu.com-20110210163054-0fv1ac5k18e8859h
(jelmer) Allow registration of extra repository formats. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1879
1879
 
1880
1880
    def test_get_format_description(self):
1881
1881
        remote_repo_format = RemoteRepositoryFormat()
1882
 
        real_format = repository.RepositoryFormat.get_default_format()
 
1882
        real_format = repository.format_registry.get_default()
1883
1883
        remote_repo_format._network_name = real_format.network_name()
1884
1884
        self.assertEqual(remoted_description(real_format),
1885
1885
            remote_repo_format.get_format_description())
2443
2443
        the client is finished.
2444
2444
        """
2445
2445
        sink = repo._get_sink()
2446
 
        fmt = repository.RepositoryFormat.get_default_format()
 
2446
        fmt = repository.format_registry.get_default()
2447
2447
        resume_tokens, missing_keys = sink.insert_stream([], fmt, [])
2448
2448
        self.assertEqual([], resume_tokens)
2449
2449
        self.assertEqual(set(), missing_keys)
2549
2549
                return True
2550
2550
        repo._real_repository = FakeRealRepository()
2551
2551
        sink = repo._get_sink()
2552
 
        fmt = repository.RepositoryFormat.get_default_format()
 
2552
        fmt = repository.format_registry.get_default()
2553
2553
        stream = self.make_stream_with_inv_deltas(fmt)
2554
2554
        resume_tokens, missing_keys = sink.insert_stream(stream, fmt, [])
2555
2555
        # Every record from the first inventory delta should have been sent to