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

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

src/f/l/flanker-0.4.14/flanker/mime/message/headers/wrappers.py   flanker(Download)
    def is_valid(cls, s):
        return cls.MIN_LENGTH < len(s) < cls.MAX_LENGTH and \
            flanker.addresslib.address.is_email(s)
 
    @classmethod

src/f/l/flanker-HEAD/flanker/mime/message/headers/wrappers.py   flanker(Download)
    def is_valid(cls, s):
        return cls.MIN_LENGTH < len(s) < cls.MAX_LENGTH and \
            flanker.addresslib.address.is_email(s)
 
    @classmethod

src/f/l/flanker-0.4.14/tests/addresslib/parser_test.py   flanker(Download)
# coding:utf-8
 
import email.header
 
from flanker.addresslib.address import is_email
def test_is_email():
    assert_true(is_email("ev@host"))
    assert_true(is_email("ev@host.com.com.com"))
 
    assert_false(is_email("evm"))
    assert_false(is_email(None))

src/f/l/flanker-HEAD/tests/addresslib/parser_test.py   flanker(Download)
# coding:utf-8
 
import email.header
 
from flanker.addresslib.address import is_email
def test_is_email():
    assert_true(is_email("ev@host"))
    assert_true(is_email("ev@host.com.com.com"))
 
    assert_false(is_email("evm"))
    assert_false(is_email(None))