tests/test-check-interfaces.py
changeset 37547 835ccc2a5ef1
parent 37545 93397c4633f6
child 37552 8b8a845c85fc
equal deleted inserted replaced
37546:3a2367e6c6f2 37547:835ccc2a5ef1
    68     handlers = []
    68     handlers = []
    69 
    69 
    70 # Facilitates testing sshpeer without requiring an SSH server.
    70 # Facilitates testing sshpeer without requiring an SSH server.
    71 class badpeer(httppeer.httppeer):
    71 class badpeer(httppeer.httppeer):
    72     def __init__(self):
    72     def __init__(self):
    73         super(badpeer, self).__init__(None, None, None, dummyopener())
    73         super(badpeer, self).__init__(None, None, None, dummyopener(), None)
    74         self.badattribute = True
    74         self.badattribute = True
    75 
    75 
    76     def badmethod(self):
    76     def badmethod(self):
    77         pass
    77         pass
    78 
    78 
    87 
    87 
    88     checkzobject(badpeer())
    88     checkzobject(badpeer())
    89 
    89 
    90     ziverify.verifyClass(repository.ipeerbaselegacycommands,
    90     ziverify.verifyClass(repository.ipeerbaselegacycommands,
    91                          httppeer.httppeer)
    91                          httppeer.httppeer)
    92     checkzobject(httppeer.httppeer(None, None, None, dummyopener()))
    92     checkzobject(httppeer.httppeer(None, None, None, dummyopener(), None))
    93 
    93 
    94     ziverify.verifyClass(repository.ipeerbase,
    94     ziverify.verifyClass(repository.ipeerbase,
    95                          localrepo.localpeer)
    95                          localrepo.localpeer)
    96     checkzobject(localrepo.localpeer(dummyrepo()))
    96     checkzobject(localrepo.localpeer(dummyrepo()))
    97 
    97