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

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

src/f/l/flanker-0.4.14/tests/mime/message/headers/headers_test.py   flanker(Download)
def headers_alternation_test():
    headers = [('mime-version', '1'), ('rEceived', '2'), ('mime-version', '3'), ('ReceiveD', '4')]
 
    h = MimeHeaders(headers)
    assert_false(h.have_changed())
 
    h.prepend('Received', 'Yo')
    ok_(h.have_changed())
    h = MimeHeaders(headers)
    del h['Mime-Version']
    ok_(h.have_changed())
 
    h = MimeHeaders(headers)
    h['Mime-Version'] = 'a'
    ok_(h.have_changed())
    h = MimeHeaders(headers)
    h.add('Mime-Version', 'a')
    ok_(h.have_changed())
 
    h = MimeHeaders(headers)

src/f/l/flanker-HEAD/tests/mime/message/headers/headers_test.py   flanker(Download)
def headers_alternation_test():
    headers = [('mime-version', '1'), ('rEceived', '2'), ('mime-version', '3'), ('ReceiveD', '4')]
 
    h = MimeHeaders(headers)
    assert_false(h.have_changed())
 
    h.prepend('Received', 'Yo')
    ok_(h.have_changed())
    h = MimeHeaders(headers)
    del h['Mime-Version']
    ok_(h.have_changed())
 
    h = MimeHeaders(headers)
    h['Mime-Version'] = 'a'
    ok_(h.have_changed())
    h = MimeHeaders(headers)
    h.add('Mime-Version', 'a')
    ok_(h.have_changed())
 
    h = MimeHeaders(headers)