File: test_4.py

package info (click to toggle)
python-wsaccel 0.6.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: python: 370; makefile: 41; ansic: 16
file content (7 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
#coding: utf-8
import wsaccel.utf8validator

def test_validate():
    v = wsaccel.utf8validator.Utf8Validator()
    x = u"Hello-µ@ßöäüàá-UTF-8!!".encode('utf-8')  # taken from case 6.2.1
    assert v.validate(x) == (True, True, 29, 29)