environment/lib/python2.7/site-packages/nose/selector.py
def wantDirectory(self, dirname):
        """Is the directory a wanted test directory?

        All package directories match, so long as they do not match exclude. 
        All other directories must match test requirements.
        """
        tail = op_basename(dirname)
        if ispackage(dirname):
            wanted = (not self.exclude
                      or not filter(None,
                                    [exc.search(tail) for exc in self.exclude]
                                    ))
        else:
            wanted = (self.matches(tail)
                      or (self.config.srcDirs
                          and tail in self.config.srcDirs))
        plug_wants = self.plugins.wantDirectory(dirname)
        if plug_wants is not None:
            log.debug("Plugin setting selection of %s to %s",
                      dirname, plug_wants)
            wanted = plug_wants
        log.debug("wantDirectory %s? %s", dirname, wanted)
        return wanted
def wantDirectory(self, dirname):
        tail = op_basename(dirname)
        if ispackage(dirname):
            wanted = (not self.exclude
                      or not filter(None,
                                    [exc.search(tail) for exc in self.exclude]
                                    ))
        else:
            wanted = (self.matches(tail)
                      or (self.config.srcDirs
                          and tail in self.config.srcDirs))
        plug_wants = self.plugins.wantDirectory(dirname)
        if plug_wants is not None:
            log.debug("Plugin setting selection of %s to %s",
                      dirname, plug_wants)
            wanted = plug_wants
        log.debug("wantDirectory %s? %s", dirname, wanted)
        return wanted
def wantDirectory ( self , dirname ) : tail = op_basename ( dirname ) if ispackage ( dirname ) : wanted = ( not self . exclude or not filter ( None , [ exc . search ( tail ) for exc in self . exclude ] ) ) else : wanted = ( self . matches ( tail ) or ( self . config . srcDirs and tail in self . config . srcDirs ) ) plug_wants = self . plugins . wantDirectory ( dirname ) if plug_wants is not None : log . debug ( "Plugin setting selection of %s to %s" , dirname , plug_wants ) wanted = plug_wants log . debug ( "wantDirectory %s? %s" , dirname , wanted ) return wanted
Is the directory a wanted test directory?

        All package directories match, so long as they do not match exclude. 
        All other directories must match test requirements.
Is the directory a wanted test directory?