~launchpad-pqm/dulwich/devel

« back to all changes in this revision

Viewing changes to dulwich/tests/test_web.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2012-02-01 22:19:18 UTC
  • mfrom: (435.1.1 lp-pqm)
  • Revision ID: launchpad@pqm.canonical.com-20120201221918-xblpmurc4ad1jjkt
[rs=jelmer] Update to r1018.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from cStringIO import StringIO
22
22
import re
 
23
import os
23
24
 
24
25
from dulwich.object_store import (
25
26
    MemoryObjectStore,
198
199
        self.assertEquals(HTTP_ERROR, self._status)
199
200
 
200
201
    def test_get_pack_file(self):
201
 
        pack_name = 'objects/pack/pack-%s.pack' % ('1' * 40)
 
202
        pack_name = os.path.join('objects', 'pack', 'pack-%s.pack' % ('1' * 40))
202
203
        backend = _test_backend([], named_files={pack_name: 'pack contents'})
203
204
        mat = re.search('.*', pack_name)
204
205
        output = ''.join(get_pack_file(self._req, backend, mat))
208
209
        self.assertTrue(self._req.cached)
209
210
 
210
211
    def test_get_idx_file(self):
211
 
        idx_name = 'objects/pack/pack-%s.idx' % ('1' * 40)
 
212
        idx_name = os.path.join('objects', 'pack', 'pack-%s.idx' % ('1' * 40))
212
213
        backend = _test_backend([], named_files={idx_name: 'idx contents'})
213
214
        mat = re.search('.*', idx_name)
214
215
        output = ''.join(get_idx_file(self._req, backend, mat))