~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

  • Committer: Aaron Bentley
  • Date: 2008-11-18 17:56:06 UTC
  • mto: This revision was merged to the branch mainline in revision 3840.
  • Revision ID: aaron@aaronbentley.com-20081118175606-195u5kcnjnedebny
Reduce inefficiency when doing make_parents_provider frequently

Show diffs side-by-side

added added

removed removed

Lines of Context:
1116
1116
class TestRepositoryGetGraph(TestRemoteRepository):
1117
1117
 
1118
1118
    def test_get_graph(self):
1119
 
        # get_graph returns a graph with the repository as the
1120
 
        # parents_provider.
 
1119
        # get_graph returns a graph with a custom parents provider.
1121
1120
        transport_path = 'quack'
1122
1121
        repo, client = self.setup_fake_client_and_repository(transport_path)
1123
1122
        graph = repo.get_graph()
1124
 
        self.assertEqual(graph._parents_provider, repo)
 
1123
        self.assertNotEqual(graph._parents_provider, repo)
1125
1124
 
1126
1125
 
1127
1126
class TestRepositoryGetParentMap(TestRemoteRepository):