~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testfetch.py

  • Committer: Robert Collins
  • Date: 2005-10-10 23:18:27 UTC
  • mfrom: (1437)
  • mto: This revision was merged to the branch mainline in revision 1438.
  • Revision ID: robertc@robertcollins.net-20051010231827-f9e2dda2e92bf565
mergeĀ fromĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
                      br_a2)
97
97
 
98
98
 
 
99
    #TODO: test that fetch correctly does reweaving when needed. RBC 20051008
 
100
 
99
101
class TestFetch(TestCaseInTempDir):
100
102
 
101
103
    def test_fetch(self):
133
135
        source = Branch.open(self.get_remote_url("source/"))
134
136
        source.weave_store.enable_cache = False
135
137
        self.assertEqual(greedy_fetch(target, source), (2, []))
136
 
        weave_suffix = 'weaves/id.weave HTTP/1.1" 200 -'
 
138
        # this is the path to the literal file. As format changes 
 
139
        # occur it needs to be updated. FIXME: ask the store for the
 
140
        # path.
 
141
        weave_suffix = 'weaves/ce/id.weave HTTP/1.1" 200 -'
137
142
        self.assertEqual(1,
138
143
            len([log for log in self.weblogs if log.endswith(weave_suffix)]))
 
144
        inventory_weave_suffix = 'inventory.weave HTTP/1.1" 200 -'
 
145
        self.assertEqual(1,
 
146
            len([log for log in self.weblogs if log.endswith(
 
147
                inventory_weave_suffix)]))