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

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

src/q/l/qless-core-HEAD/test/test_locks.py   qless-core(Download)
    def test_malformed(self):
        '''Enumerate malformed inputs into heartbeat'''
        self.assertMalformed(self.lua, [
            ('heartbeat', 0),
            ('heartbeat', 0, 'jid'),
    def test_malformed(self):
        '''Enumerate all the malformed inputs'''
        self.assertMalformed(self.lua, [
            ('retry', 0),
            ('retry', 0, 'jid'),

src/q/l/qless-core-HEAD/test/test_queue.py   qless-core(Download)
    def test_malformed(self):
        '''Enumerate all the ways that the input can be malformed'''
        self.assertMalformed(self.lua, [
            ('jobs', 0, 'complete', 'foo'),
            ('jobs', 0, 'complete', 0, 'foo'),
    def test_malformed(self):
        '''Enumerate all the ways in which the input can be messed up'''
        self.assertMalformed(self.put, [
            (12345,),                              # No queue provided
            (12345, 'foo'),                        # No jid provided
    def test_malformed(self):
        '''Enumerate all the ways in which the input can be malformed'''
        self.assertMalformed(self.lua, [
            ('peek', 12345,),                         # No queue provided
            ('peek', 12345, 'foo'),                   # No count provided
    def test_malformed(self):
        '''Enumerate all the ways this can be malformed'''
        self.assertMalformed(self.lua, [
            ('pop', 12345,),                              # No queue provided
            ('pop', 12345, 'queue'),                      # No worker provided

src/q/l/qless-core-HEAD/test/test_fail.py   qless-core(Download)
    def test_malformed(self):
        '''Enumerate all the malformed cases'''
        self.assertMalformed(self.lua, [
            ('fail', 0),
            ('fail', 0, 'jid'),
    def test_malformed(self):
        '''Enumerate all the malformed requests'''
        self.assertMalformed(self.lua, [
            ('failed', 0, 'foo', 'foo'),
            ('failed', 0, 'foo', 0, 'foo')

src/q/l/qless-core-HEAD/test/test_job.py   qless-core(Download)
    def test_malformed(self):
        '''Enumerate all malformed input to priority'''
        self.assertMalformed(self.lua, [
            ('priority', '0'),
            ('priority', '0', 'jid'),
    def test_malformed(self):
        '''Enumerate all the way they can be malformed'''
        self.assertMalformed(self.lua, [
            ('complete', 0, 'jid', 'worker', 'queue', {}, 'next'),
            ('complete', 0, 'jid', 'worker', 'queue', {}, 'delay'),

src/q/l/qless-core-HEAD/test/test_stats.py   qless-core(Download)
    def test_malformed(self):
        '''Enumerate all the ways to send malformed requests'''
        self.assertMalformed(self.lua, [
            ('stats', 0),
            ('stats', 0, 'queue'),

src/q/l/qless-core-HEAD/test/test_tag.py   qless-core(Download)
    def test_malformed(self):
        '''Enumerate all the ways it could be malformed'''
        self.assertMalformed(self.lua, [
            ('tag', 0),
            ('tag', 0, 'add'),

src/q/l/qless-core-HEAD/test/test_track.py   qless-core(Download)
    def test_malfomed(self):
        '''Enumerate all the ways that it can be malformed'''
        self.assertMalformed(self.lua, [
            ('track', 0, 'track'),
            ('track', 0, 'untrack'),

src/q/l/qless-core-HEAD/test/test_recurring.py   qless-core(Download)
    def test_malformed(self):
        '''Enumerate all the malformed possibilities'''
        self.assertMalformed(self.lua, [
            ('recur', 0),
            ('recur', 0, 'queue'),
        # In order for these tests to work, there must be a job
        self.lua('recur', 0, 'queue', 'jid', 'klass', {}, 'interval', 60, 0)
        self.assertMalformed(self.lua, [
            ('recur.update', 0, 'jid', 'priority'),
            ('recur.update', 0, 'jid', 'priority', 'foo'),