'Return whether the given directory should be scanned for tests.'

def wantDirectory(self, directory):

    if any(((pat in directory) for pat in self.exclude_patterns)):
        return False
    return None
