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

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Add message and return assigned key.

src/l/a/lamson-HEAD/tests/lamson_tests/queue_tests.py   lamson(Download)
    except: pass
    sq = queue.SafeMaildir('run/queue')
    sq.add("TEST")
 
def raise_OSError(*x, **kw):
def test_SafeMaildir_throws_errno_failure():
    setup()
    mailbox._create_carefully.side_effect = raise_OSError
    sq = queue.SafeMaildir('run/queue')
    sq.add("TEST")
    os.stat.side_effect = raise_OSError
    sq = queue.SafeMaildir('run/queue')
    sq.add('TEST')
 
 

src/l/a/lamson-1.3.4/tests/lamson_tests/queue_tests.py   lamson(Download)
    except: pass
    sq = queue.SafeMaildir('run/queue')
    sq.add("TEST")
 
def raise_OSError(*x, **kw):
def test_SafeMaildir_throws_errno_failure():
    setup()
    mailbox._create_carefully.side_effect = raise_OSError
    sq = queue.SafeMaildir('run/queue')
    sq.add("TEST")
    os.stat.side_effect = raise_OSError
    sq = queue.SafeMaildir('run/queue')
    sq.add('TEST')