File: parsing_test.py

package info (click to toggle)
python-flanker 0.9.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,976 kB
  • sloc: python: 9,308; makefile: 4
file content (7 lines) | stat: -rw-r--r-- 226 bytes parent folder | download
1
2
3
4
5
6
7
from nose.tools import *

from flanker.mime.message.headers import parsing

def test_content_type_star():
    _, ctype = parsing.parse_header('Content-Type: image/* ; name="Stuart *Wells.PNG"')
    eq_(ctype.value, 'image/*')