tests/test-check-interfaces.py
changeset 42927 d459cd8ea42d
parent 42813 268662aac075
child 43076 2372284d9457
equal deleted inserted replaced
42926:34ed651ba7e4 42927:d459cd8ea42d
    13 if subprocess.call(['python', '%s/hghave' % os.environ['TESTDIR'],
    13 if subprocess.call(['python', '%s/hghave' % os.environ['TESTDIR'],
    14                     'test-repo']):
    14                     'test-repo']):
    15     sys.exit(80)
    15     sys.exit(80)
    16 
    16 
    17 from mercurial.interfaces import (
    17 from mercurial.interfaces import (
       
    18     dirstate as intdirstate,
    18     repository,
    19     repository,
    19 )
    20 )
    20 from mercurial.thirdparty.zope import (
    21 from mercurial.thirdparty.zope import (
    21     interface as zi,
    22     interface as zi,
    22 )
    23 )
    23 from mercurial.thirdparty.zope.interface import (
    24 from mercurial.thirdparty.zope.interface import (
    24     verify as ziverify,
    25     verify as ziverify,
    25 )
    26 )
    26 from mercurial import (
    27 from mercurial import (
    27     bundlerepo,
    28     bundlerepo,
       
    29     dirstate,
    28     filelog,
    30     filelog,
    29     httppeer,
    31     httppeer,
    30     localrepo,
    32     localrepo,
    31     manifest,
    33     manifest,
    32     pycompat,
    34     pycompat,
   187                          simplestorerepo.simplestorerevisiondelta)
   189                          simplestorerepo.simplestorerevisiondelta)
   188     ziverify.verifyClass(repository.ifilestorage, simplestorerepo.filestorage)
   190     ziverify.verifyClass(repository.ifilestorage, simplestorerepo.filestorage)
   189     ziverify.verifyClass(repository.iverifyproblem,
   191     ziverify.verifyClass(repository.iverifyproblem,
   190                          simplestorerepo.simplefilestoreproblem)
   192                          simplestorerepo.simplefilestoreproblem)
   191 
   193 
       
   194     ziverify.verifyClass(intdirstate.idirstate, dirstate.dirstate)
       
   195 
   192     vfs = vfsmod.vfs(b'.')
   196     vfs = vfsmod.vfs(b'.')
   193     fl = filelog.filelog(vfs, b'dummy.i')
   197     fl = filelog.filelog(vfs, b'dummy.i')
   194     checkzobject(fl, allowextra=True)
   198     checkzobject(fl, allowextra=True)
   195 
   199 
   196     # Conforms to imanifestlog.
   200     # Conforms to imanifestlog.