tests/test-match.py
author Boris Feld <boris.feld@octobus.net>
Thu, 18 Jan 2018 16:47:14 +0100
changeset 35730 05d415790761
parent 33582 44bc181b9835
child 38991 987d3a4b989f
permissions -rw-r--r--
debugdownload: read repository hgrc if there is one The command does not require a repository, but will use it if there is one. This simplifies the reading of the remote destination when testing for largefile based url.

from __future__ import absolute_import

import unittest

import silenttestrunner

from mercurial import (
    match as matchmod,
)

class NeverMatcherTests(unittest.TestCase):

    def testVisitdir(self):
        m = matchmod.nevermatcher('', '')
        self.assertFalse(m.visitdir('.'))
        self.assertFalse(m.visitdir('dir'))

if __name__ == '__main__':
    silenttestrunner.main(__name__)