File: test-encoding.py

package info (click to toggle)
twill 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,472 kB
  • ctags: 1,916
  • sloc: python: 12,686; java: 98; makefile: 18; sh: 2
file content (11 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
import twilltestlib
from _mechanize_dist import ClientForm
from cStringIO import StringIO

def test_form_parse():
    content = "›"
    fp = StringIO(content)

    # latin-1...
    ClientForm.ParseFile(fp, "<test-encoding.py fp>", encoding='latin-1',
                         backwards_compat=False)