~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/test_register.py

(gz) Fix test failure on alpha by correcting format string for
 gc_chk_sha1_record (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        """
68
68
        class FakeHttpResponse(object):
69
69
 
70
 
            def __init__(self, status, reason, body):
 
70
            def __init__(self, status, reason, headers, body):
71
71
                self.status = status
72
72
                self.reason = reason
 
73
                self.headers = headers
73
74
                self.body = body
74
75
 
75
76
            def read(self, size=-1):
76
77
                return self.body.read(size)
77
78
 
78
 
            def getheader(self, name, default):
79
 
                # We don't have headers
80
 
                return default
81
 
 
82
 
        return FakeHttpResponse(200, 'OK', self.getfile())
 
79
        return FakeHttpResponse(200, 'OK', [], self.getfile())
83
80
 
84
81
    def getfile(self):
85
82
        """Return a fake file containing the response content."""