MCPcopy Index your code
hub / github.com/clips/pattern / setUp

Method setUp

test/test_vector.py:33–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31class TestUnicode(unittest.TestCase):
32
33 def setUp(self):
34 # Test data with different (or wrong) encodings.
35 self.strings = (
36 u"ünîcøde",
37 u"ünîcøde".encode("utf-16"),
38 u"ünîcøde".encode("latin-1"),
39 u"ünîcøde".encode("windows-1252"),
40 "ünîcøde",
41 u"אוניקאָד"
42 )
43
44 def test_decode_utf8(self):
45 # Assert unicode.

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected