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

Method setUp

test/test_db.py:51–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49class TestUnicode(unittest.TestCase):
50
51 def setUp(self):
52 # Test data with different (or wrong) encodings.
53 self.strings = (
54 u"ünîcøde",
55 u"ünîcøde".encode("utf-16"),
56 u"ünîcøde".encode("latin-1"),
57 u"ünîcøde".encode("windows-1252"),
58 "ünîcøde",
59 u"אוניקאָד"
60 )
61
62 def test_decode_utf8(self):
63 # Assert unicode.

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected