tests/test-check-interfaces.py
changeset 36370 11ba1a96f946
parent 35978 59e4a7781a36
child 37006 8e89c2bec1f7
equal deleted inserted replaced
36369:066e6a9d52bb 36370:11ba1a96f946
    57         self.badattribute = True
    57         self.badattribute = True
    58 
    58 
    59     def badmethod(self):
    59     def badmethod(self):
    60         pass
    60         pass
    61 
    61 
       
    62 class dummypipe(object):
       
    63     def close(self):
       
    64         pass
       
    65 
    62 def main():
    66 def main():
    63     ui = uimod.ui()
    67     ui = uimod.ui()
    64 
    68 
    65     checkobject(badpeer())
    69     checkobject(badpeer())
    66     checkobject(httppeer.httppeer(ui, 'http://localhost'))
    70     checkobject(httppeer.httppeer(ui, 'http://localhost'))
    67     checkobject(localrepo.localpeer(dummyrepo()))
    71     checkobject(localrepo.localpeer(dummyrepo()))
    68     checkobject(sshpeer.sshv1peer(ui, 'ssh://localhost/foo', None, None, None,
    72     checkobject(sshpeer.sshv1peer(ui, 'ssh://localhost/foo', None, dummypipe(),
    69                                   None, None))
    73                                   dummypipe(), None, None))
    70     checkobject(sshpeer.sshv2peer(ui, 'ssh://localhost/foo', None, None, None,
    74     checkobject(sshpeer.sshv2peer(ui, 'ssh://localhost/foo', None, dummypipe(),
    71                                   None, None))
    75                                   dummypipe(), None, None))
    72     checkobject(bundlerepo.bundlepeer(dummyrepo()))
    76     checkobject(bundlerepo.bundlepeer(dummyrepo()))
    73     checkobject(statichttprepo.statichttppeer(dummyrepo()))
    77     checkobject(statichttprepo.statichttppeer(dummyrepo()))
    74     checkobject(unionrepo.unionpeer(dummyrepo()))
    78     checkobject(unionrepo.unionpeer(dummyrepo()))
    75 
    79 
    76 main()
    80 main()