tests/test-check-interfaces.py
changeset 37545 93397c4633f6
parent 37441 a3202fa83aff
child 37547 835ccc2a5ef1
equal deleted inserted replaced
37544:55b5ba8d4e68 37545:93397c4633f6
    21     ui as uimod,
    21     ui as uimod,
    22     unionrepo,
    22     unionrepo,
    23     vfs as vfsmod,
    23     vfs as vfsmod,
    24     wireprotoserver,
    24     wireprotoserver,
    25     wireprototypes,
    25     wireprototypes,
       
    26     wireprotov2server,
    26 )
    27 )
    27 
    28 
    28 rootdir = os.path.normpath(os.path.join(os.path.dirname(__file__), '..'))
    29 rootdir = os.path.normpath(os.path.join(os.path.dirname(__file__), '..'))
    29 
    30 
    30 def checkzobject(o, allowextra=False):
    31 def checkzobject(o, allowextra=False):
   123     ziverify.verifyClass(wireprototypes.baseprotocolhandler,
   124     ziverify.verifyClass(wireprototypes.baseprotocolhandler,
   124                          wireprotoserver.sshv2protocolhandler)
   125                          wireprotoserver.sshv2protocolhandler)
   125     ziverify.verifyClass(wireprototypes.baseprotocolhandler,
   126     ziverify.verifyClass(wireprototypes.baseprotocolhandler,
   126                          wireprotoserver.httpv1protocolhandler)
   127                          wireprotoserver.httpv1protocolhandler)
   127     ziverify.verifyClass(wireprototypes.baseprotocolhandler,
   128     ziverify.verifyClass(wireprototypes.baseprotocolhandler,
   128                          wireprotoserver.httpv2protocolhandler)
   129                          wireprotov2server.httpv2protocolhandler)
   129 
   130 
   130     sshv1 = wireprotoserver.sshv1protocolhandler(None, None, None)
   131     sshv1 = wireprotoserver.sshv1protocolhandler(None, None, None)
   131     checkzobject(sshv1)
   132     checkzobject(sshv1)
   132     sshv2 = wireprotoserver.sshv2protocolhandler(None, None, None)
   133     sshv2 = wireprotoserver.sshv2protocolhandler(None, None, None)
   133     checkzobject(sshv2)
   134     checkzobject(sshv2)
   134 
   135 
   135     httpv1 = wireprotoserver.httpv1protocolhandler(None, None, None)
   136     httpv1 = wireprotoserver.httpv1protocolhandler(None, None, None)
   136     checkzobject(httpv1)
   137     checkzobject(httpv1)
   137     httpv2 = wireprotoserver.httpv2protocolhandler(None, None)
   138     httpv2 = wireprotov2server.httpv2protocolhandler(None, None)
   138     checkzobject(httpv2)
   139     checkzobject(httpv2)
   139 
   140 
   140     ziverify.verifyClass(repository.ifilestorage, filelog.filelog)
   141     ziverify.verifyClass(repository.ifilestorage, filelog.filelog)
   141 
   142 
   142     vfs = vfsmod.vfs('.')
   143     vfs = vfsmod.vfs('.')