Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/f/s/fsq-0.2.5/fsq/tests/install.py   fsq(Download)
import os
from . import FSQTestCase
from .internal import test_type_own_mode, normalize
from .constants import ROOT1, ROOT2, NON_ASCII, NOT_NORMAL, ILLEGAL_NAMES,\
                       ILLEGAL_MODE, ILLEGAL_NAME, ILLEGAL_UID,\
    def test_basic(self):
        '''Test all permutations of arguments, or most of them anyway,
           combined with permuatations of module constants values.'''
        for root in ROOT1, ROOT2:
            _c.FSQ_ROOT = root
    def test_collide(self):
        '''Test installing to an already installed path.'''
        for root in ROOT1, ROOT2:
            _c.FSQ_ROOT = root
            queue = self._install()
    def test_invalnames(self):
        '''Test installing with illegal names'''
        for root in ROOT1, ROOT2:
            _c.FSQ_ROOT = root
            # verify installing queue with non-coercable name fails
    def test_usergroup(self):
        '''Test installing with queue user|group for tmp/done/fail/queue'''
        for uid, gid in ((UID, GID, ), (UNAME, GNAME, )):
            for root in ROOT1, ROOT2:
                _c.FSQ_ROOT = root

src/f/s/fsq-HEAD/fsq/tests/install.py   fsq(Download)
import os
from . import FSQTestCase
from .internal import test_type_own_mode, normalize
from .constants import ROOT1, ROOT2, NON_ASCII, NOT_NORMAL, ILLEGAL_NAMES,\
                       ILLEGAL_MODE, ILLEGAL_NAME, ILLEGAL_UID,\
    def test_basic(self):
        '''Test all permutations of arguments, or most of them anyway,
           combined with permuatations of module constants values.'''
        for root in ROOT1, ROOT2:
            _c.FSQ_ROOT = root
    def test_collide(self):
        '''Test installing to an already installed path.'''
        for root in ROOT1, ROOT2:
            _c.FSQ_ROOT = root
            queue = self._install()
    def test_invalnames(self):
        '''Test installing with illegal names'''
        for root in ROOT1, ROOT2:
            _c.FSQ_ROOT = root
            # verify installing queue with non-coercable name fails
    def test_usergroup(self):
        '''Test installing with queue user|group for tmp/done/fail/queue'''
        for uid, gid in ((UID, GID, ), (UNAME, GNAME, )):
            for root in ROOT1, ROOT2:
                _c.FSQ_ROOT = root

src/f/s/fsq-0.2.5/fsq/tests/configure.py   fsq(Download)
from . import FSQTestCase
from .internal import test_type_own_mode, normalize
from .constants import ROOT1, ROOT2, NON_ASCII, NOT_NORMAL, ILLEGAL_NAMES,\
                       ILLEGAL_MODE, ILLEGAL_NAME, ILLEGAL_UID,\
                       ILLEGAL_UNAME, MODES, UID, GID, UNAME, GNAME, NOROOT
    def test_basic(self):
        '''Test all permutations of arguments, or most of them anyway,
           combined with permutations of module constants values.'''
        for root in ROOT1, ROOT2:
            # test different down file names
    def test_invalnames(self):
        '''Test failure with invalid or illegal names'''
        for root in (ROOT1, ROOT2,):
            _c.FSQ_ROOT = root
            for name in ILLEGAL_NAMES:

src/f/s/fsq-HEAD/fsq/tests/configure.py   fsq(Download)
from . import FSQTestCase
from .internal import test_type_own_mode, normalize
from .constants import ROOT1, ROOT2, NON_ASCII, NOT_NORMAL, ILLEGAL_NAMES,\
                       ILLEGAL_MODE, ILLEGAL_NAME, ILLEGAL_UID,\
                       ILLEGAL_UNAME, MODES, UID, GID, UNAME, GNAME, NOROOT
    def test_basic(self):
        '''Test all permutations of arguments, or most of them anyway,
           combined with permutations of module constants values.'''
        for root in ROOT1, ROOT2:
            # test different down file names
    def test_invalnames(self):
        '''Test failure with invalid or illegal names'''
        for root in (ROOT1, ROOT2,):
            _c.FSQ_ROOT = root
            for name in ILLEGAL_NAMES: