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

All Samples(14)  |  Call(12)  |  Derive(0)  |  Import(2)

src/f/l/flanker-0.4.14/tests/mime/message/tokenizer_test.py   flanker(Download)
# coding:utf-8
import zlib
from nose.tools import *
from mock import *
from flanker.mime.message.scanner import tokenize, ContentType, Boundary
def no_ctype_and_and_boundaries_test():
    """We are ok, when there is no content type and boundaries"""
    eq_([], tokenize(NO_CTYPE))
 
 
def binary_test():
    """Can scan binary stuff: works for 8bit mime"""
    tokens = tokenize(EIGHT_BIT)
def torture_test():
    """Torture is a complex multipart nested message"""
 
    tokens = tokenize(TORTURE)
 
    """
 
    tokens = tokenize(BIG)
    dummy = 0
    expect = [

src/f/l/flanker-HEAD/tests/mime/message/tokenizer_test.py   flanker(Download)
# coding:utf-8
import zlib
from nose.tools import *
from mock import *
from flanker.mime.message.scanner import tokenize, ContentType, Boundary
def no_ctype_and_and_boundaries_test():
    """We are ok, when there is no content type and boundaries"""
    eq_([], tokenize(NO_CTYPE))
 
 
def binary_test():
    """Can scan binary stuff: works for 8bit mime"""
    tokens = tokenize(EIGHT_BIT)
def torture_test():
    """Torture is a complex multipart nested message"""
 
    tokens = tokenize(TORTURE)
 
    """
 
    tokens = tokenize(BIG)
    dummy = 0
    expect = [