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

All Samples(310)  |  Call(304)  |  Derive(0)  |  Import(6)

src/f/l/flanker-0.4.14/flanker/addresslib/parser.py   flanker(Download)
 
        if dname:
            return flanker.addresslib.address.EmailAddress(dname, aaddr)
        return flanker.addresslib.address.EmailAddress(None, aaddr)
 
 
        if dname:
            return flanker.addresslib.address.EmailAddress(dname, aaddr)
        return flanker.addresslib.address.EmailAddress(None, aaddr)
 
        if as_string:
            return aspec
        return flanker.addresslib.address.EmailAddress(None, aspec)
 
    def _local_part(self):

src/f/l/flanker-HEAD/flanker/addresslib/parser.py   flanker(Download)
 
        if dname:
            return flanker.addresslib.address.EmailAddress(dname, aaddr)
        return flanker.addresslib.address.EmailAddress(None, aaddr)
 
 
        if dname:
            return flanker.addresslib.address.EmailAddress(dname, aaddr)
        return flanker.addresslib.address.EmailAddress(None, aaddr)
 
        if as_string:
            return aspec
        return flanker.addresslib.address.EmailAddress(None, aspec)
 
    def _local_part(self):

src/f/l/flanker-0.4.14/tests/addresslib/parser_mailbox_test.py   flanker(Download)
 
from flanker.addresslib import address
from flanker.addresslib.address import EmailAddress
from flanker.addresslib.parser import ParserException
 
def test_mailbox():
    "Grammar: mailbox -> name-addr | addr-spec"
 
    # sanity
    run_full_mailbox_test('Steve Jobs <steve@apple.com>', EmailAddress('Steve Jobs', 'steve@apple.com'))
    run_full_mailbox_test('"Steve Jobs" <steve@apple.com>', EmailAddress('"Steve Jobs"', 'steve@apple.com'))
    run_mailbox_test('<steve@apple.com>', 'steve@apple.com')
 
    run_full_mailbox_test('Steve Jobs steve@apple.com', EmailAddress('Steve Jobs', 'steve@apple.com'))
    run_full_mailbox_test('"Steve Jobs" steve@apple.com', EmailAddress('"Steve Jobs"', 'steve@apple.com'))

src/f/l/flanker-HEAD/tests/addresslib/parser_mailbox_test.py   flanker(Download)
 
from flanker.addresslib import address
from flanker.addresslib.address import EmailAddress
from flanker.addresslib.parser import ParserException
 
def test_mailbox():
    "Grammar: mailbox -> name-addr | addr-spec"
 
    # sanity
    run_full_mailbox_test('Steve Jobs <steve@apple.com>', EmailAddress('Steve Jobs', 'steve@apple.com'))
    run_full_mailbox_test('"Steve Jobs" <steve@apple.com>', EmailAddress('"Steve Jobs"', 'steve@apple.com'))
    run_mailbox_test('<steve@apple.com>', 'steve@apple.com')
 
    run_full_mailbox_test('Steve Jobs steve@apple.com', EmailAddress('Steve Jobs', 'steve@apple.com'))
    run_full_mailbox_test('"Steve Jobs" steve@apple.com', EmailAddress('"Steve Jobs"', 'steve@apple.com'))

src/f/l/flanker-0.4.14/tests/addresslib/parser_address_list_test.py   flanker(Download)
 
from flanker.addresslib import address
from flanker.addresslib.address import EmailAddress, AddressList
 
 
 
 
BILL_AS = EmailAddress(None, 'bill@microsoft.com')
STEVE_AS = EmailAddress(None, 'steve@apple.com')
LINUS_AS = EmailAddress(None, 'torvalds@kernel.org')
 
BILL_MBX = EmailAddress('Bill Gates', 'bill@microsoft.com')

src/f/l/flanker-HEAD/tests/addresslib/parser_address_list_test.py   flanker(Download)
 
from flanker.addresslib import address
from flanker.addresslib.address import EmailAddress, AddressList
 
 
 
 
BILL_AS = EmailAddress(None, 'bill@microsoft.com')
STEVE_AS = EmailAddress(None, 'steve@apple.com')
LINUS_AS = EmailAddress(None, 'torvalds@kernel.org')
 
BILL_MBX = EmailAddress('Bill Gates', 'bill@microsoft.com')

src/f/l/flanker-0.4.14/tests/addresslib/address_test.py   flanker(Download)
 
from flanker.addresslib.address import parse, parse_list
from flanker.addresslib.address import Address, AddressList, EmailAddress, UrlAddress
 
 
def test_address_compare():
    a = EmailAddress("a@host.com")
    b = EmailAddress("b@host.com")
    also_a = EmailAddress("A@host.com")
 
def test_edge_cases():
    email = EmailAddress('"foo.bar@"@example.com')
    eq_('"foo.bar@"@example.com', email.address)
 

src/f/l/flanker-HEAD/tests/addresslib/address_test.py   flanker(Download)
 
from flanker.addresslib.address import parse, parse_list
from flanker.addresslib.address import Address, AddressList, EmailAddress, UrlAddress
 
 
def test_address_compare():
    a = EmailAddress("a@host.com")
    b = EmailAddress("b@host.com")
    also_a = EmailAddress("A@host.com")
 
def test_edge_cases():
    email = EmailAddress('"foo.bar@"@example.com')
    eq_('"foo.bar@"@example.com', email.address)