File: wrappers_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 (10 lines) | stat: -rw-r--r-- 256 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from nose.tools import eq_

from flanker.mime.message.headers.wrappers import ContentType

def charset_test():
    c = ContentType('text', 'plain')
    eq_('ascii', c.get_charset())

    c = ContentType('application', 'pdf')
    eq_(None, c.get_charset())