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

Method setUp

test/test_web.py:36–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected